Details
PangoXSubfont
typedef guint16 PangoXSubfont; |
The PangoXSubFont type is an integer ID that identifies one
particular X font within the fonts referenced in a PangoFont.
PANGO_X_MAKE_GLYPH()
#define PANGO_X_MAKE_GLYPH(subfont,index) ((subfont)<<16 | (index)) |
Make a glyph index from a PangoXSubFont index and a index
of a character with the corresponding X font.
PANGO_X_GLYPH_SUBFONT()
#define PANGO_X_GLYPH_SUBFONT(glyph) ((glyph)>>16) |
Extract the subfont index from a glyph index.
PANGO_X_GLYPH_INDEX()
#define PANGO_X_GLYPH_INDEX(glyph) ((glyph) & 0xffff) |
Extract the character index within the X font from a
glyph index.
pango_x_load_font ()
PangoFont* pango_x_load_font (Display *display,
const gchar *spec); |
Loads up a logical font based on a "fontset" style text
specification. This is not remotely useful (Pango API's generally
work in terms of PangoFontDescription) and the result may not
work correctly in all circumstances. Use of this function should
be avoided.
pango_x_get_unknown_glyph ()
Returns the index of a glyph suitable for drawing unknown characters.
pango_x_has_glyph ()
Checks if the given glyph is present in a X font.
pango_x_list_subfonts ()
int pango_x_list_subfonts (PangoFont *font,
char **charsets,
int n_charsets,
PangoXSubfont **subfont_ids,
int **subfont_charsets); |
Lists the subfonts of a given font.
pango_x_font_map_for_display ()
PangoFontMap* pango_x_font_map_for_display (Display *display); |
Returns a PangoXFontMap for display. Font maps are cached and should
not be freed. If the font map for a display is no longer needed, it can
be released with pango_x_shutdown_display().
pango_x_shutdown_display ()
void pango_x_shutdown_display (Display *display); |
Free cached resources for the given X display structure.
pango_x_font_map_get_font_cache ()
Obtains the font cache associated with the given font map.
pango_x_font_subfont_xlfd ()
Determines the X Logical Font Description for the specified
subfont.
pango_x_find_first_subfont ()
Looks for subfonts with the charset charset,
in font, and puts the first one in *rfont.
pango_x_font_get_unknown_glyph ()
Returns the index of a glyph suitable for drawing wc as an
unknown character.
pango_x_apply_ligatures ()
gboolean pango_x_apply_ligatures (PangoFont *font,
PangoXSubfont subfont,
gunichar **glyphs,
int *n_glyphs,
int **clusters); |
Does subfont-specific ligation. This involves replacing
groups of glyphs in chars with alternate groups of glyphs
based on information provided in the X font.
pango_x_fallback_shape ()
This is a simple fallback shaper, that can be used
if no subfont that supports a given script is found.
For every character in text, it puts the Unknown glyph.
struct PangoXFontCache
A PangoXFontCache caches
XFontStructs for a single display by their XLFD name.
pango_x_font_cache_new ()
Creates a font cache for the specified display.
pango_x_font_cache_free ()
Frees a PangoXFontCache and all associated memory. All fonts loaded
through this font cache will be freed along with the cache.
pango_x_font_cache_load ()
XFontStruct* pango_x_font_cache_load (PangoXFontCache *cache,
const char *xlfd); |
Loads a XFontStruct from a X Logical Font Description. The
result may be newly loaded, or it may have been previously
stored.