PHP » GoLang |
login |
register |
about
|
GoLang CairoContext::fontExtents
request it (286)
GoLang replacement for PHP's CairoContext::fontExtents
[edit | history]
CairoContext::fontExtentscairo_font_extents(PECL cairo >= 0.1.0) CairoContext::fontExtents -- cairo_font_extents — Get the font extents DescriptionObject oriented style (method):
public array CairoContext::fontExtents
( void
)
Procedural style: Gets the font extents for the currently selected font. Parameters
Return ValuesAn array containing the font extents for the current font. Examples
Example #1 Object oriented style
<?php 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 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
|
more
Recently updated
more
Most requested
more
Last requests
|