| Reference Manual - 1.4.13

IDirectFBFont | GetGlyphExtents

#### Get the extents of a glyph specified by its character code.

DFBResult GetGlyphExtents (
| IDirectFBFont |  | * | thiz,
| unsigned int |  |  | character,
| DFBRectangle |  | * | ret_rect,
| int |  | * | ret_advance
);

The rectangle describes the the smallest rectangle containing all pixels that are touched when drawing the glyph. It is reported relative to the baseline. If you only need the advance, pass NULL for the rectangle.

The advance describes the horizontal offset to the next glyph (without kerning applied). It may be a negative value indicating left-to-right rendering. If you don't need this value, pass NULL for advance.

| This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License