GObject.Object
Pango.FontMap
PangoFT2.PangoFcFontMap
PangoCairo.FcFontMap
Import line: | PangoCairo = imports.gi.PangoCairo; |
GIR File: | PangoCairo-1.0.gir |
C documentation: | PangoCairoFcFontMap |
Class : | FcFontMap |
Implements: | PangoCairo.FontMap |
Extends: | PangoFT2.PangoFcFontMap |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
dpi : Number
read only
|
PangoCairo.FcFontMap | |
library : freetype2.Library
read only
|
PangoCairo.FcFontMap | |
parent_instance : PangoFT2.PangoFcFontMap
read only
|
PangoCairo.FcFontMap |
Method / Constructor | Defined By | |
---|---|---|
new PangoCairo.FcFontMap
(Object properties)
Create a new PangoCairo.FcFontMap
Create a new PangoCairo.FcFontMap
|
||
This function saves a callback method in the PangoFcFontMap that will be called whenever new fonts are created.
This function saves a callback method in the PangoFcFontMap that will be called whenever new fonts are created. If the function returns a PangoFcDecoder, that decoder will be used to determine both coverage via a FcCharSet and a one-to-one mapping of characters to glyphs. This will allow applications to have application-specific encodings for various fonts.
|
PangoFT2.PangoFcFontMap | |
cache_clear
()
:
none
Clear all cached information and fontsets for this font map; this should be called whenever there is a change in the output of the default_substitute() virtual function of the font map, or if fontconfig has been reinitialized to new configuration.
Clear all cached information and fontsets for this font map; this should be called whenever there is a change in the output of the default_substitute() virtual function of the font map, or if fontconfig has been reinitialized to new configuration.
|
PangoFT2.PangoFcFontMap | |
create_context
()
:
Pango.Context
Creates a PangoContext connected to fontmap.
Creates a PangoContext connected to fontmap. This is equivalent to pango_context_new() followed by pango_context_set_font_map(). If you are using Pango as part of a higher-level system, that system may have it's own way of create a PangoContext. For instance, the GTK+ toolkit has, among others, gdk_pango_context_get_for_screen(), and gtk_widget_get_pango_context(). Use those instead. be freed with g_object_unref().
|
Pango.FontMap | |
find_decoder
(Pattern pattern)
:
PangoFT2.PangoFcDecoder
Finds the decoder to use for pattern.
Finds the decoder to use for pattern. Decoders can be added to a font map using pango_fc_font_map_add_decoder_find_func(). no decoder is set for pattern.
|
PangoFT2.PangoFcFontMap | |
get_font_type
()
:
cairo.FontType
Gets the type of Cairo font backend that fontmap uses.
Gets the type of Cairo font backend that fontmap uses.
|
PangoCairo.FontMap | |
get_resolution
()
:
Number
Gets the resolution for the fontmap.
Gets the resolution for the fontmap. See pango_cairo_font_map_set_resolution()
|
PangoCairo.FontMap | |
list_families
(FontFamily families)
:
Number
List all families for a fontmap.
List all families for a fontmap.
|
Pango.FontMap | |
Load the font in the fontmap that is the closest match for desc.
Load the font in the fontmap that is the closest match for desc.
|
Pango.FontMap | |
Load a set of fonts in the fontmap that can be used to render a font matching desc.
Load a set of fonts in the fontmap that can be used to render a font matching desc.
|
Pango.FontMap | |
set_default
()
:
none
Sets a default PangoCairoFontMap to use with Cairo.
Sets a default PangoCairoFontMap to use with Cairo. This can be used to change the Cairo font backend that the default fontmap uses for example. The old default font map is unreffed and the new font map referenced. A value of NULL for fontmap will cause the current default font map to be released and a new default font map to be created on demand, using pango_cairo_font_map_new().
|
PangoCairo.FontMap | |
set_resolution
(Number dpi)
:
none
Sets the resolution for the fontmap.
Sets the resolution for the fontmap. This is a scale factor between points specified in a PangoFontDescription and Cairo units. The default value is 96, meaning that a 10 point font will be 13 units high. (10 * 96. / 72. = 13.3).
|
PangoCairo.FontMap |
None |