Fonts
Structures representing abstract fonts.
Pango supports a flexible architecture where a
particular rendering architecture can supply an
implementation of fonts. The #PangoFont structure
represents an abstract rendering-system-indepent font.
Pango provides routines to list available fonts, and
to load a font of a given description.
The #PangoFontDescription structure represents the description
of an ideal font. These structures are used both to list
what fonts are available on the system and also for specifying
the characteristics of a font to load.
@PANGO_STYLE_NORMAL:
@PANGO_STYLE_OBLIQUE:
@PANGO_STYLE_ITALIC:
An enumeration specifying the weight (boldness) of a font. This is a numerical
value ranging from 100 to 900, but there are some predefined values:
@PANGO_WEIGHT_ULTRALIGHT: the ultralight weight (= 200)
@PANGO_WEIGHT_LIGHT: the light weight (=300)
@PANGO_WEIGHT_NORMAL: the default weight (= 400)
@PANGO_WEIGHT_BOLD: the bold weight (= 700)
@PANGO_WEIGHT_ULTRABOLD: the ultrabold weight (= 800)
@PANGO_WEIGHT_HEAVY: the heavy weight (= 900)
An enumeration specifying capitalization variant of the font.
@PANGO_VARIANT_NORMAL: A normal font.
@PANGO_VARIANT_SMALL_CAPS: A font with the lower case characters
replaced by smaller variants of the capital characters.
An enumeration specifying the width of the font relative to other designs
within a family.
@PANGO_STRETCH_ULTRA_CONDENSED:
@PANGO_STRETCH_EXTRA_CONDENSED:
@PANGO_STRETCH_CONDENSED:
@PANGO_STRETCH_SEMI_CONDENSED:
@PANGO_STRETCH_NORMAL: the normal width
@PANGO_STRETCH_SEMI_EXPANDED:
@PANGO_STRETCH_EXPANDED:
@PANGO_STRETCH_EXTRA_EXPANDED:
@PANGO_STRETCH_ULTRA_EXPANDED:
@PANGO_FONT_MASK_FAMILY:
@PANGO_FONT_MASK_STYLE:
@PANGO_FONT_MASK_VARIANT:
@PANGO_FONT_MASK_WEIGHT:
@PANGO_FONT_MASK_STRETCH:
@PANGO_FONT_MASK_SIZE:
@Returns:
@desc:
@Returns:
@desc:
@Returns:
@desc:
@Returns:
@desc1:
@desc2:
@Returns:
@desc:
@descs:
@n_descs:
@desc:
@family:
@desc:
@family:
@desc:
@Returns:
@desc:
@style:
@desc:
@Returns:
@desc:
@variant:
@desc:
@Returns:
@desc:
@weight:
@desc:
@Returns:
@desc:
@stretch:
@desc:
@Returns:
@desc:
@size:
@desc:
@Returns:
@desc:
@Returns:
@desc:
@to_unset:
@desc:
@desc_to_merge:
@replace_existing:
@desc:
@desc_to_merge:
@replace_existing:
@desc:
@old_match:
@new_match:
@Returns:
@str:
@Returns:
@desc:
@Returns:
@desc:
@Returns:
@ref_count:
@ascent:
@descent:
@approximate_char_width:
@approximate_digit_width:
@metrics:
@Returns:
@metrics:
@metrics:
@Returns:
@metrics:
@Returns:
@metrics:
@Returns:
@metrics:
@Returns:
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
which the implementation fills in:
@parent_instance:
@font:
@language:
@ch:
@Returns:
@lang:
@char:
@font:
@Returns:
@font:
@language:
@Returns:
@lang:
@font:
@glyph:
@ink_rect:
@logical_rect:
@font:
@language:
@Returns:
@metrics:
@lang:
@object:
@object:
@parent_instance:
@object:
@object:
@family:
@Returns:
@family:
@faces:
@n_faces:
@parent_instance:
@object:
@object:
@face:
@Returns:
@face:
@Returns:
The #PangoFontMap represents the set of fonts available for a
particular rendering system. This is a virtual object with
implementations being specific to particular rendering systems. To
create an implementation of a #PangoFontMap, the rendering-system
specific code should malloc a larger structure that contains a nested
#PangoFontMap, fill in the klass member of the nested #PangoFontMap with a
pointer to a appropriate #PangoFontMapClass, then call
pango_font_map_init() on the structure.
The #PangoFont structure contains one member which the implementation fills in:
@parent_instance:
The #PangoFontMapClass structure holds the virtual functions for
a particular #PangoFontMap implementation.
@parent_class:
@load_font: a function to load a font with a given description. See
pango_font_map_load_font()
@list_families: A function to list available font families. See
pango_font_map_list_families().
@fontmap:
@desc:
@Returns:
@size:
@fontmap:
@families:
@n_families:
@object:
@object:
@klass:
@klass:
@obj: