Query: cairo_font_extents
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CAIRO_FONT_EXTENTS(3) 1 CAIRO_FONT_EXTENTS(3) CairoContext::fontExtents - Get the font extents Object oriented style (method):SYNOPSISpublic array CairoContext::fontExtents (void )DESCRIPTIONProcedural style: array cairo_font_extents (CairoContext $context) Gets the font extents for the currently selected font.PARAMETERSo $context - Description...RETURN VALUESAn array containing the font extents for the current font.EXAMPLESExample #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 ALSOClassname::Method. PHP Documentation Group CAIRO_FONT_EXTENTS(3)
Related Man Pages |
---|
cairo_copy_path(3) - php |
cairo_arc_negative(3) - php |
cairo_clip_preserve(3) - php |
cairo_fill_extents(3) - php |
cairo_has_current_point(3) - php |
Similar Topics in the Unix Linux Community |
---|
Need help with C program |
How to print the word |
Target LUNs plus que deux sur un SAN de 2 fabrics |
Migration de vm's Linux-VServer sur ESX |
Problème d'interface réseau |