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.
- public bool better_match (FontDescription? old_match, FontDescription new_match)
Determines if the style attributes of new_match
are a
closer match for this than those of old_match
are, or if old_match
is
null, determines if new_match
is a match at all.
- public FontDescription? copy ()
Make a copy of a `PangoFontDescription`.
- public FontDescription? copy_static ()
Make a copy of a `PangoFontDescription`, but don't duplicate allocated
fields.
- public bool equal (FontDescription desc2)
Compares two font descriptions for equality.
- public void free ()
Frees a font description.
- public unowned string? get_family ()
Gets the family name field of a font description.
- public Gravity get_gravity ()
Gets the gravity field of a font description.
- public FontMask get_set_fields ()
Determines which fields in a font description have been set.
- public int get_size ()
Gets the size field of a font description.
- public bool get_size_is_absolute ()
Determines whether the size of the font is in points (not absolute) or
device units (absolute).
- public Stretch get_stretch ()
Gets the stretch field of a font description.
- public Style get_style ()
Gets the style field of a `PangoFontDescription`.
- public Variant get_variant ()
Gets the variant field of a `PangoFontDescription`.
- public unowned string? get_variations ()
Gets the variations field of a font description.
- public Weight get_weight ()
Gets the weight field of a font description.
- public uint hash ()
Computes a hash of a `PangoFontDescription` structure.
- public void merge (FontDescription? desc_to_merge, bool replace_existing)
Merges the fields that are set in desc_to_merge
into the
fields in this.
- public void merge_static (FontDescription desc_to_merge, bool replace_existing)
Merges the fields that are set in desc_to_merge
into the
fields in this, without copying allocated fields.
- public void set_absolute_size (double size)
Sets the size field of a font description, in device units.
- public void set_family (string family)
Sets the family name field of a font description.
- public void set_family_static (string family)
Sets the family name field of a font description, without copying the
string.
- public void set_gravity (Gravity gravity)
Sets the gravity field of a font description.
- public void set_size (int size)
Sets the size field of a font description in fractional points.
- public void set_stretch (Stretch stretch)
Sets the stretch field of a font description.
- public void set_style (Style style)
Sets the style field of a `PangoFontDescription`.
- public void set_variant (Variant variant)
Sets the variant field of a font description.
- public void set_variations (string? variations)
Sets the variations field of a font description.
- public void set_variations_static (string variations)
Sets the variations field of a font description.
- public void set_weight (Weight weight)
Sets the weight field of a font description.
- public string to_filename ()
Creates a filename representation of a font description.
- public string to_string ()
Creates a string representation of a font description.
- public void unset_fields (FontMask to_unset)
Unsets some of the fields in a `PangoFontDescription`.