summaryrefslogtreecommitdiff
path: root/pango/pangox.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-05-28 02:11:42 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-05-28 02:11:42 +0000
commit987301d5df4f16a1df132e2b4c4dd8a94b708ce2 (patch)
tree855b25d0004f50ae02b25ba604eeb3a1160fff71 /pango/pangox.h
parent2c10e7197f33eb1bf6d8771de13b241263dc041b (diff)
downloadpango-987301d5df4f16a1df132e2b4c4dd8a94b708ce2.tar.gz
Install pango-fontmap.h.
Sat May 27 22:05:53 2000 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am (pangoinclude_HEADERS): Install pango-fontmap.h. * pango/pangox-fontcache.c pango/pangox.h: Add a simple cache from XLFD => font struct. * pango/pango-fontmap.c: Use this when loading and unloading fonts.
Diffstat (limited to 'pango/pangox.h')
-rw-r--r--pango/pangox.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/pango/pangox.h b/pango/pangox.h
index 2c465b61..d71bb2dd 100644
--- a/pango/pangox.h
+++ b/pango/pangox.h
@@ -85,7 +85,18 @@ PangoGlyph pango_x_get_unknown_glyph (PangoFont *font);
/* API for libraries that want to use PangoX mixed with classic X fonts.
*/
-PangoFontMap *pango_x_font_map_for_display (Display *display);
+typedef struct _PangoXFontCache 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);
+
+PangoFontMap * pango_x_font_map_for_display (Display *display);
+PangoXFontCache *pango_x_font_map_get_font_cache (PangoFontMap *font_map);
#ifdef __cplusplus
}
@@ -93,7 +104,3 @@ PangoFontMap *pango_x_font_map_for_display (Display *display);
#endif /* __PANGOX_H__ */
-
-
-
-