Class: PangoFc::Font
- Inherits:
-
Pango::Font
- Object
- Pango::Font
- PangoFc::Font
- Defined in:
- (unknown)
Class Method Summary collapse
-
.description_from_pattern(pattern, include_size) ⇒ Pango::FontDescription
Creates a
PangoFontDescriptionthat matches the specified Fontconfig pattern as closely as possible.
Instance Method Summary collapse
-
#fontmap ⇒ PangoFc::FontMap
The PangoFc font map this font is associated with.
-
#fontmap=(fontmap) ⇒ PangoFc::FontMap
The PangoFc font map this font is associated with.
-
#get_glyph(wc) ⇒ Integer
Gets the glyph index for a given Unicode character for font.
-
#get_unknown_glyph(wc) ⇒ Pango::Glyph
Returns the index of a glyph suitable for drawing wc as an unknown character.
-
#has_char(wc) ⇒ Boolean
Determines whether font has a glyph for the codepoint wc.
-
#kern_glyphs(glyphs) ⇒ nil
This function used to adjust each adjacent pair of glyphs in glyphs according to kerning information in font.
-
#languages ⇒ Array<Pango::Language>
Returns the languages that are supported by font.
-
#lock_face ⇒ freetype2::Face
Gets the FreeType
FT_Faceassociated with a font. -
#pattern ⇒ GObject
The fontconfig pattern for this font.
-
#pattern=(pattern) ⇒ GObject
The fontconfig pattern for this font.
-
#unlock_face ⇒ nil
Releases a font previously obtained with [methodPangoFc.Font.lock_face].
Methods inherited from Pango::Font
#describe, #describe_with_absolute_size, descriptions_free, deserialize, #face, #font_map, #get_coverage, #get_features, #get_glyph_extents, #get_metrics, #hb_font, #serialize
Class Method Details
.description_from_pattern(pattern, include_size) ⇒ Pango::FontDescription
Creates a PangoFontDescription that matches the specified
Fontconfig pattern as closely as possible.
Many possible Fontconfig pattern values, such as %FC_RASTERIZER
or %FC_DPI, don't make sense in the context of PangoFontDescription,
so will be ignored.
Instance Method Details
#fontmap ⇒ PangoFc::FontMap
The PangoFc font map this font is associated with.
#fontmap=(fontmap) ⇒ PangoFc::FontMap
The PangoFc font map this font is associated with.
#get_glyph(wc) ⇒ Integer
Gets the glyph index for a given Unicode character for font.
If you only want to determine whether the font has the glyph, use [methodPangoFc.Font.has_char].
#get_unknown_glyph(wc) ⇒ Pango::Glyph
Returns the index of a glyph suitable for drawing wc as an unknown character.
Use PANGO_GET_UNKNOWN_GLYPH() instead.
#has_char(wc) ⇒ Boolean
Determines whether font has a glyph for the codepoint wc.
#kern_glyphs(glyphs) ⇒ nil
This function used to adjust each adjacent pair of glyphs in glyphs according to kerning information in font.
Since 1.44, it does nothing.
#languages ⇒ Array<Pango::Language>
Returns the languages that are supported by font.
This corresponds to the FC_LANG member of the FcPattern.
The returned array is only valid as long as the font and its fontmap are valid.
#lock_face ⇒ freetype2::Face
Gets the FreeType FT_Face associated with a font.
This face will be kept around until you call [methodPangoFc.Font.unlock_face].
#pattern ⇒ GObject
The fontconfig pattern for this font.
#pattern=(pattern) ⇒ GObject
The fontconfig pattern for this font.
#unlock_face ⇒ nil
Releases a font previously obtained with [methodPangoFc.Font.lock_face].