![]() | Reference Manual - 0.9.25 | ||
|
Get the extents of a glyph specified by its Unicode index.
GetGlyphExtents ( | ||||
IDirectFBFont | * | thiz, | ||
unsigned int | index, | |||
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.