CAIRO_FONT_EXTENTS(3) 1 CAIRO_FONT_EXTENTS(3)CairoContext::fontExtents - Get the font extents
Object oriented style (method):
SYNOPSIS
public array CairoContext::fontExtents (void )
DESCRIPTION
Procedural style:
array cairo_font_extents (CairoContext $context)
Gets the font extents for the currently selected font.
PARAMETERS
o $context
- Description...
RETURN VALUES
An array containing the font extents for the current font.
EXAMPLES
Example #1
Object oriented style
<?php
$sur = new CairoImageSurface(CairoFormat::ARGB32, 50, 50);
$con = new CairoContext($sur);
var_dump($con->fontExtents());
?>
The above example will output something similar to:
array(5) {
["ascent"]=>
float(10)
["descent"]=>
float(3)
["height"]=>
float(13.3125)
["max_x_advance"]=>
float(26.65625)
["max_y_advance"]=>
float(0)
}
Example #2
Procedural style
<?php
$sur = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50);
$con = cairo_create($sur);
var_dump(cairo_font_extents($con));
?>
The above example will output something similar to:
array(5) {
["ascent"]=>
float(10)
["descent"]=>
float(3)
["height"]=>
float(13.3125)
["max_x_advance"]=>
float(26.65625)
["max_y_advance"]=>
float(0)
}
SEE ALSO
Classname::Method.
PHP Documentation Group CAIRO_FONT_EXTENTS(3)
Check Out this Related Man Page
CAIRO_CLIP_EXTENTS(3) 1 CAIRO_CLIP_EXTENTS(3)CairoContext::clipExtents - Computes the area inside the current clip
Object oriented style (method):
SYNOPSIS
public array CairoContext::clipExtents (void )
DESCRIPTION
Procedural style:
array cairo_clip_extents (CairoContext $context)
Computes a bounding box in user coordinates covering the area inside the current clip.
PARAMETERS
o $context
- A valid CairoContext object
RETURN VALUES
An array containing the (float)x1, (float)y1, (float)x2, (float)y2, coordinates covering the area inside the current clip
EXAMPLES
Example #1
Object oriented style
<?php
$surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50);
$context = new CairoContext($surface);
var_dump($context->clipExtents());
?>
The above example will output something similar to:
array(4) {
[0]=>
float(0)
[1]=>
float(0)
[2]=>
float(50)
[3]=>
float(50)
}
Example #2
Procedural style
<?php
$surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50);
$context = cairo_create($surface);
var_dump(cairo_clip_extents($context));
?>
The above example will output something similar to:
array(4) {
[0]=>
float(0)
[1]=>
float(0)
[2]=>
float(50)
[3]=>
float(50)
}
SEE ALSO
CairoContext::clip.
PHP Documentation Group CAIRO_CLIP_EXTENTS(3)
Can someone tell how do I get my function called "float OT_hours (float hrs)" to output the number of hours worked for each employee using an array. I have a function called "void input_hours (int clock_number,float Hours)" that asks the user to input the number of hours for each employee. Do I... (1 Reply)
1) I had one query regarding how to define a particular value which has a space.
For example, I would say
for i in s su sur
do
print $i
sleep 1
done
This will results in
s
su
sur
Now I want... (0 Replies)
salut admin,
Normalement mon serveur doit voir un de mes LDEV à partir de deux chemins sur le SAN et ainsi lui attribuer seulement deux Target LUNs. Or il lui en a attribué 8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Très bizzare!
Auriez vous une idée.
Merci pour votre aide appréciée (2 Replies)
Bonjour,
Tout est dans la question. Est-il possible de migrer des vm's de type Linux-VServer sur une infrastructure ESX ?
En d'autres termes, j'aimerai récupérer chaque vm individuellement puis me débarrasser de la technologie Linux-VServer. Ainsi toutes mes vm's seraient sur ESX.
Merci... (1 Reply)
Hi everyone,
I'm having some trouble with float array.
When i try to get the array sum with float numbers i get this error line 39: soma + 2.34 | bc: syntax error: invalid arithmetic operator (error token is ".34 | bc")
26 Somar() {
27 echo "Quantos numeros deseja somar?"
28 read... (4 Replies)
bonjour,
j'ai un serveur Linux ayant 2 interfaces eth0 et eth1. j'ai configuré deux adresses IP de deux réseaux différents sur les 2 interfaces, et je les ai connecté sur 2 commutateurs différents.
l'adresse IP de eth0 répond sans problème au ping des équipement de son réseau d'appartenance, malheureusement cela... (1 Reply)