Class: Pango::FontFamily
- Inherits:
-
Object
- Object
- Pango::FontFamily
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#get_face(name) ⇒ Pango::FontFace
Gets the
PangoFontFaceof family with the given name. -
#is_monospace ⇒ Boolean
A monospace font is a font designed for text display where the the characters form a regular grid.
-
#is_monospace=(is_monospace) ⇒ Boolean
Is this a monospace font.
-
#is_monospace? ⇒ Boolean
Is this a monospace font.
-
#is_variable ⇒ Boolean
A variable font is a font which has axes that can be modified to produce different faces.
-
#is_variable=(is_variable) ⇒ Boolean
Is this a variable font.
-
#is_variable? ⇒ Boolean
Is this a variable font.
-
#item_type ⇒ GLib::Type
The type of items contained in this list.
-
#item_type=(item_type) ⇒ GLib::Type
The type of items contained in this list.
-
#list_faces(faces, n_faces) ⇒ nil
Lists the different font faces that make up family.
-
#n_items ⇒ Integer
The number of items contained in this list.
-
#n_items=(n_items) ⇒ Integer
The number of items contained in this list.
-
#name ⇒ String
The name of the family.
-
#name=(name) ⇒ String
The name of the family.
Instance Method Details
#get_face(name) ⇒ Pango::FontFace
Gets the PangoFontFace of family with the given name.
#is_monospace ⇒ Boolean
A monospace font is a font designed for text display where the the characters form a regular grid.
For Western languages this would mean that the advance width of all characters are the same, but this categorization also includes Asian fonts which include double-width characters: characters that occupy two grid cells. g_unichar_iswide() returns a result that indicates whether a character is typically double-width in a monospace font.
The best way to find out the grid-cell size is to call [methodPango.FontMetrics.get_approximate_digit_width], since the results of [methodPango.FontMetrics.get_approximate_char_width] may be affected by double-width characters.
#is_monospace=(is_monospace) ⇒ Boolean
Is this a monospace font
#is_monospace? ⇒ Boolean
Is this a monospace font
#is_variable ⇒ Boolean
A variable font is a font which has axes that can be modified to produce different faces.
Such axes are also known as variations; see [methodPango.FontDescription.set_variations] for more information.
#is_variable=(is_variable) ⇒ Boolean
Is this a variable font
#is_variable? ⇒ Boolean
Is this a variable font
#item_type ⇒ GLib::Type
The type of items contained in this list.
#item_type=(item_type) ⇒ GLib::Type
The type of items contained in this list.
#list_faces(faces, n_faces) ⇒ nil
Lists the different font faces that make up family.
The faces in a family share a common design, but differ in slant, weight, width and other aspects.
Note that the returned faces are not in any particular order, and multiple faces may have the same name or characteristics.
PangoFontFamily also implemented the [ifaceGio.ListModel] interface
for enumerating faces.
#n_items ⇒ Integer
The number of items contained in this list.
#n_items=(n_items) ⇒ Integer
The number of items contained in this list.
#name ⇒ String
The name of the family
#name=(name) ⇒ String
The name of the family