PangoFT2.FontMap¶
- Subclasses:
None
Methods¶
- Inherited:
PangoFc.FontMap (7), Pango.FontMap (8), GObject.Object (37), Gio.ListModel (4)
- Structs:
class |
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class PangoFT2.FontMap(**kwargs)¶
- Bases:
- Abstract:
No
The
PangoFT2FontMap
is thePangoFontMap
implementation for FreeType fonts.- classmethod new()[source]¶
- Returns:
the newly created fontmap object. Unref with
GObject.Object.unref
() when you are finished with it.- Return type:
Create a new
PangoFT2FontMap
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 [method`PangoFT2`.FontMap.set_default_substitute]).
New in version 1.2.
- set_default_substitute(func, *data)[source]¶
- Parameters:
func (
PangoFT2.SubstituteFunc
) – function to call to to do final config tweaking onfontconfig.Pattern
objects.
Sets a function that will be called to do final configuration substitution on a
FcPattern
before it is used to load the font.This function can be used to do things like set hinting and antialiasing options.
New in version 1.2.
Deprecated since version 1.46: Use [method`PangoFc`.FontMap.set_default_substitute] instead.
- set_resolution(dpi_x, dpi_y)[source]¶
- Parameters:
Sets the horizontal and vertical resolutions for the fontmap.
New in version 1.2.
- substitute_changed()[source]¶
Call this function any time the results of the default substitution function set with
PangoFT2.FontMap.set_default_substitute
() change.That is, if your substitution function will return different results for the same input pattern, you must call this function.
New in version 1.2.
Deprecated since version 1.46: Use [method`PangoFc`.FontMap.substitute_changed] instead.