Fonts
Structures representing abstract fonts.
Pango supports a flexible architecture where a
particular rendering architecture can supply an
implementation of fonts. The #PangoFont and
#PangoCFont structures represent an abstract
rendering-system-indepent font, and a
component of such a font,
respectively.
The #PangoFont structure is used to represent
a font in a rendering-system-independent matter.
To create an implementation of a #PangoFont,
the rendering-system specific code should malloc
a larger structure that contains a nested
#PangoFont, fill in the klass member of
the nested #PangoFont with a pointer to
a appropriate #PangoFontClass, then call
pango_font_init() on the structure.
The #PangoFont structure contains one member
that may be accessed by derived classes:
#PangoFontClass *klass;
a pointer to the class structure
for this font.
The PangoFontClass structure contains the virtual
functions for an implementation of a a PangoFont.
It contains the following member:
void (*destroy) (#PangoFont *font);
a function to free the font structure and associated resources.
@font:
@font:
@font:
@font:
@key:
@Returns:
@font:
@key:
@data:
@destroy_func:
The #PangoCFont structure is used to represent a single componenent
of a font n a rendering-system-independent matter. A component of a
font is an opaque object that makes sense only to the rendering
system. A glyph (the #PangoGlyph structure) is stored as a #PangoCFont
and a numeric glyph index.
To create an implementation of a #PangoCFont,
the rendering-system specific code should malloc
a larger structure that contains a nested
#PangoCFont, fill in the klass member of
the nested #PangoCFont with a pointer to
a appropriate #PangoCFontClass, then call
pango_cfont_init() on the structure.
The #PangoCFont structure contains one member
that may be accessed by derived classes:
#PangoCFontClass *klass;
a pointer to the class structure
for this font.
The PangoCFontClass structure contains the virtual
functions for an implementation of a a PangoCFont.
It contains the following member:
void (*destroy) (#PangoFont *font);
a function to free the font structure and associated resources.
@font:
@font:
@font: