DirectFB Reference Manual
IDirectFBFont   GetGlyphExtents

Get the extents of a glyph specified by its Unicode index.

GetGlyphExtents (
  IDirectFBFont *thiz
  unsigned int index
  DFBRectangle *rect
  int *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.

  (C) Copyright by convergence GmbH