Class: PangoFT2::FontMap
- Inherits:
-
Object
- Object
- PangoFT2::FontMap
- Defined in:
- (unknown)
Overview
The Pango::FT2FontMap is the #PangoFontMap implementation for FreeType fonts.
Instance Method Summary collapse
-
#create_context ⇒ Pango::Context
Create a Pango::Context for the given fontmap.
-
#new ⇒ Pango::FontMap
Create a new Pango::FT2FontMap object; a fontmap is used to cache information about available fonts, and holds certain global parameters such as the resolution and the default substitute function (see pango_ft2_font_map_set_default_substitute()).
-
#set_default_substitute(func, data, notify) ⇒ nil
Sets a function that will be called to do final configuration substitution on a Fc::Pattern before it is used to load the font.
-
#set_resolution(dpi_x, dpi_y) ⇒ nil
Sets the horizontal and vertical resolutions for the fontmap.
-
#substitute_changed ⇒ nil
Call this function any time the results of the default substitution function set with pango_ft2_font_map_set_default_substitute() change.
Instance Method Details
#create_context ⇒ Pango::Context
Create a Pango::Context for the given fontmap.
#new ⇒ Pango::FontMap
Create a new Pango::FT2FontMap object; a fontmap is used to cache information about available fonts, and holds certain global parameters such as the resolution and the default substitute function (see pango_ft2_font_map_set_default_substitute()). with g_object_unref() when you are finished with it.
#set_default_substitute(func, data, notify) ⇒ nil
Sets a function that will be called to do final configuration substitution on a Fc::Pattern before it is used to load the font. This function can be used to do things like set hinting and antialiasing options.
#set_resolution(dpi_x, dpi_y) ⇒ nil
Sets the horizontal and vertical resolutions for the fontmap.
#substitute_changed ⇒ nil
Call this function any time the results of the default substitution function set with pango_ft2_font_map_set_default_substitute() change. That is, if your substitution function will return different results for the same input pattern, you must call this function.