SynopsisPangoFcFontMap; PangoFcFontMapClass; PangoContext* pango_fc_font_map_create_context (PangoFcFontMap *fcfontmap); PangoFcDecoder* (*PangoFcDecoderFindFunc) (FcPattern *pattern, gpointer user_data); void pango_fc_font_map_add_decoder_find_func (PangoFcFontMap *fcfontmap, PangoFcDecoderFindFunc findfunc, gpointer user_data, GDestroyNotify dnotify); void pango_fc_font_map_cache_clear (PangoFcFontMap *fcfontmap); void pango_fc_font_map_shutdown (PangoFcFontMap *fcfontmap); PangoFontDescription* pango_fc_font_description_from_pattern (FcPattern *pattern, gboolean include_size); #define PANGO_FC_GRAVITY #define PANGO_FC_VERSION Object HierarchyGObject +----PangoFontMap +----PangoFcFontMap +----PangoFT2FontMap +----PangoXftFontMap DescriptionPangoFcFontMap is a base class for font map implementations using the Fontconfig and FreeType libraries. It is used in the Xft and FreeType backends shipped with Pango, but can also be used when creating new backends. Any backend deriving from this base class will take advantage of the wide range of shapers implemented using FreeType that come with Pango. DetailsPangoFcFontMaptypedef struct _PangoFcFontMap PangoFcFontMap;
PangoFcFontMap is a base class for font map implementations
using the Fontconfig and FreeType libraries. To create a new
backend using Fontconfig and FreeType, you derive from this class
and implement a
PangoFcFontMapClasstypedef struct { /* Deprecated in favor of context_substitute */ void (*default_substitute) (PangoFcFontMap *fontmap, FcPattern *pattern); /* Deprecated in favor of create_font */ PangoFcFont *(*new_font) (PangoFcFontMap *fontmap, FcPattern *pattern); double (*get_resolution) (PangoFcFontMap *fcfontmap, PangoContext *context); gconstpointer (*context_key_get) (PangoFcFontMap *fcfontmap, PangoContext *context); gpointer (*context_key_copy) (PangoFcFontMap *fcfontmap, gconstpointer key); void (*context_key_free) (PangoFcFontMap *fcfontmap, gpointer key); guint32 (*context_key_hash) (PangoFcFontMap *fcfontmap, gconstpointer key); gboolean (*context_key_equal) (PangoFcFontMap *fcfontmap, gconstpointer key_a, gconstpointer key_b); void (*context_substitute) (PangoFcFontMap *fontmap, PangoContext *context, FcPattern *pattern); PangoFcFont *(*create_font) (PangoFcFontMap *fontmap, PangoContext *context, const PangoFontDescription *desc, FcPattern *pattern); } PangoFcFontMapClass; Class structure for PangoFcFontMap.
pango_fc_font_map_create_context ()PangoContext* pango_fc_font_map_create_context (PangoFcFontMap *fcfontmap); Warning
Creates a new context for this fontmap. This function is intended only for backend implementations deriving from PangoFcFontmap; it is possible that a backend will store additional information needed for correct operation on the PangoContext after calling this function.
Since 1.4 PangoFcDecoderFindFunc ()PangoFcDecoder* (*PangoFcDecoderFindFunc) (FcPattern *pattern, gpointer user_data);
Callback function passed to
pango_fc_font_map_add_decoder_find_func ()void pango_fc_font_map_add_decoder_find_func (PangoFcFontMap *fcfontmap, PangoFcDecoderFindFunc findfunc, gpointer user_data, GDestroyNotify dnotify); 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.
Since 1.6. pango_fc_font_map_cache_clear ()void pango_fc_font_map_cache_clear (PangoFcFontMap *fcfontmap);
Clear all cached information and fontsets for this font map;
this should be called whenever there is a change in the
output of the
Since 1.4 pango_fc_font_map_shutdown ()void pango_fc_font_map_shutdown (PangoFcFontMap *fcfontmap);
Clears all cached information for the fontmap and marks
all fonts open for the fontmap as dead. (See the
Since 1.4 pango_fc_font_description_from_pattern ()PangoFontDescription* pango_fc_font_description_from_pattern (FcPattern *pattern, gboolean include_size);
Creates a PangoFontDescription that matches the specified
Fontconfig pattern as closely as possible. Many possible Fontconfig
pattern values, such as
Since 1.4 PANGO_FC_GRAVITY#define PANGO_FC_GRAVITY "pangogravity"
String representing a fontconfig property name that Pango sets on any
fontconfig pattern it passes to fontconfig if a PangoGravity other
than The property will have a PangoGravity value as a string, like "east".
Since 1.20 PANGO_FC_VERSION#define PANGO_FC_VERSION "pangoversion" String representing a fontconfig property name that Pango sets on any fontconfig pattern it passes to fontconfig.
The property will have an integer value equal to what
Since 1.20 See Also
|