Class: Pango::FontFace
- Inherits:
-
Object
- Object
- Pango::FontFace
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#describe ⇒ Pango::FontDescription
Returns a font description that matches the face.
-
#face_name ⇒ String
Gets a name representing the style of this face.
-
#family ⇒ Pango::FontFamily
Gets the
PangoFontFamilythat face belongs to. -
#is_synthesized ⇒ Boolean
Returns whether a
PangoFontFaceis synthesized. -
#list_sizes(sizes, n_sizes) ⇒ nil
List the available sizes for a font.
Instance Method Details
#describe ⇒ Pango::FontDescription
Returns a font description that matches the face.
The resulting font description will have the family, style, variant, weight and stretch of the face, but its size field will be unset.
#face_name ⇒ String
Gets a name representing the style of this face.
Note that a font family may contain multiple faces with the same name (e.g. a variable and a non-variable face for the same style).
#family ⇒ Pango::FontFamily
Gets the PangoFontFamily that face belongs to.
#is_synthesized ⇒ Boolean
Returns whether a PangoFontFace is synthesized.
This will be the case if the underlying font rendering engine creates this face from another face, by shearing, emboldening, lightening or modifying it in some other way.
#list_sizes(sizes, n_sizes) ⇒ nil
List the available sizes for a font.
This is only applicable to bitmap fonts. For scalable fonts, stores nil at the location pointed to by sizes and 0 at the location pointed to by n_sizes. The sizes returned are in Pango units and are sorted in ascending order.