Name
X Fonts -- Functions for shape engines to manipulate X fonts.
Synopsis
typedef PangoXSubfont;
#define PANGO_X_MAKE_GLYPH (subfont,index)
#define PANGO_X_GLYPH_SUBFONT (glyph)
#define PANGO_X_GLYPH_INDEX (glyph)
PangoFont* pango_x_load_font (Display *display,
gchar *spec);
PangoGlyph pango_x_get_unknown_glyph (PangoFont *font);
gboolean pango_x_has_glyph (PangoFont *font,
PangoGlyph glyph);
int pango_x_list_subfonts (PangoFont *font,
char **charsets,
int n_charsets,
PangoXSubfont **subfont_ids,
int **subfont_charsets);
PangoFontMap* pango_x_font_map_for_display (Display *display);
void pango_x_shutdown_display (Display *display);
PangoXFontCache* pango_x_font_map_get_font_cache
(PangoFontMap *font_map);
char* pango_x_font_subfont_xlfd (PangoFont *font,
PangoXSubfont subfont_id);
struct PangoXFontCache;
PangoXFontCache* pango_x_font_cache_new (Display *display);
void pango_x_font_cache_free (PangoXFontCache *cache);
XFontStruct* pango_x_font_cache_load (PangoXFontCache *cache,
char *xlfd);
void pango_x_font_cache_unload (PangoXFontCache *cache,
XFontStruct *fs); |
Description
The functions and macros in this section are used by shape
engines to look up glyphs for particular character
sets within an PangoFont for the X rendering system.
Details
PangoXSubfont
typedef guint16 PangoXSubfont; |
The PangXSubFont type is an integer ID that identifies one
particular X font within the fonts referenced in a
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,
gchar *spec); |
Loads up a logical font based on a "fontset" style
text specification.
pango_x_get_unknown_glyph ()
Return the index of a glyph suitable for drawing unknown characters.
pango_x_has_glyph ()
Check 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); |
pango_x_font_map_for_display ()
PangoFontMap* pango_x_font_map_for_display (Display *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 ()
pango_x_font_subfont_xlfd ()
Determine the X Logical Font Description for the specified
subfont.
pango_x_font_cache_new ()
Create a font cache for the specified display.
pango_x_font_cache_free ()
Free 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 ()
Load a XFontStruct from a X Logical Font Description. The
result may be newly loaded, or it may have been previously
stored