Struct
PangoFontDescription
Description [src]
struct PangoFontDescription {
/* No available fields */
}
A PangoFontDescription
describes a font in an implementation-independent manner.
PangoFontDescription
structures are used both to list what fonts are
available on the system and also for specifying the characteristics of
a font to load.
Constructors
pango_font_description_new
Creates a new font description structure with all fields unset.
Functions
pango_font_description_from_string
Creates a new font description from a string representation.
Instance methods
pango_font_description_better_match
Determines if the style attributes of new_match
are a closer match
for desc
than those of old_match
are, or if old_match
is NULL
,
determines if new_match
is a match at all.
pango_font_description_copy
Make a copy of a PangoFontDescription
.
pango_font_description_copy_static
Make a copy of a PangoFontDescription
, but don’t duplicate
allocated fields.
pango_font_description_equal
Compares two font descriptions for equality.
pango_font_description_free
Frees a font description.
pango_font_description_get_family
Gets the family name field of a font description.
pango_font_description_get_gravity
Gets the gravity field of a font description.
Available since: 1.16
pango_font_description_get_set_fields
Determines which fields in a font description have been set.
pango_font_description_get_size
Gets the size field of a font description.
pango_font_description_get_size_is_absolute
Determines whether the size of the font is in points (not absolute) or device units (absolute).
Available since: 1.8
pango_font_description_get_stretch
Gets the stretch field of a font description.
pango_font_description_get_style
Gets the style field of a PangoFontDescription
.
pango_font_description_get_variant
Gets the variant field of a PangoFontDescription
.
pango_font_description_get_variations
Gets the variations field of a font description.
Available since: 1.42
pango_font_description_get_weight
Gets the weight field of a font description.
pango_font_description_hash
Computes a hash of a PangoFontDescription
structure.
pango_font_description_merge
Merges the fields that are set in desc_to_merge
into the fields in
desc
.
pango_font_description_merge_static
Merges the fields that are set in desc_to_merge
into the fields in
desc
, without copying allocated fields.
pango_font_description_set_absolute_size
Sets the size field of a font description, in device units.
Available since: 1.8
pango_font_description_set_family
Sets the family name field of a font description.
pango_font_description_set_family_static
Sets the family name field of a font description, without copying the string.
pango_font_description_set_gravity
Sets the gravity field of a font description.
Available since: 1.16
pango_font_description_set_size
Sets the size field of a font description in fractional points.
pango_font_description_set_stretch
Sets the stretch field of a font description.
pango_font_description_set_style
Sets the style field of a PangoFontDescription
.
pango_font_description_set_variant
Sets the variant field of a font description.
pango_font_description_set_variations
Sets the variations field of a font description.
Available since: 1.42
pango_font_description_set_variations_static
Sets the variations field of a font description.
Available since: 1.42
pango_font_description_set_weight
Sets the weight field of a font description.
pango_font_description_to_filename
Creates a filename representation of a font description.
pango_font_description_to_string
Creates a string representation of a font description.
pango_font_description_unset_fields
Unsets some of the fields in a PangoFontDescription
.