summaryrefslogtreecommitdiff
path: root/pango/pangox-private.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-06-05 19:36:33 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-06-05 19:36:33 +0000
commit7b428440247958a9c52fe29c4aeeecfd6f43f39b (patch)
tree586a5c61355a622caab97e583e703e2390dbbf8f /pango/pangox-private.h
parent40638f2de292719e3615e5ae77ff5f97d57300bc (diff)
downloadpango-7b428440247958a9c52fe29c4aeeecfd6f43f39b.tar.gz
Fix problem with unloading fonts.
Mon Jun 5 15:35:03 2000 Owen Taylor <otaylor@redhat.com> * pango/pangox-fontcache.c (pango_x_font_cache_unload): Fix problem with unloading fonts. * pango/pangox-fontmap.c pango/pangox-private.h pangox/pangox.c: Add a simple PangoXFont; get rid of the eternal caching of all fonts.
Diffstat (limited to 'pango/pangox-private.h')
-rw-r--r--pango/pangox-private.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pango/pangox-private.h b/pango/pangox-private.h
index e627bd44..5d90c186 100644
--- a/pango/pangox-private.h
+++ b/pango/pangox-private.h
@@ -50,6 +50,12 @@ struct _PangoXFont
int max_subfonts;
GSList *metrics_by_lang;
+
+ PangoFontMap *fontmap;
+ /* If TRUE, font is in cache of recently unused fonts and not otherwise
+ * in use.
+ */
+ gboolean in_cache;
PangoXFontEntry *entry; /* Used to remove cached fonts */
};
@@ -68,4 +74,9 @@ PangoCoverage *pango_x_font_entry_get_coverage (PangoXFontEntry *entry,
void pango_x_font_entry_remove (PangoXFontEntry *entry,
PangoFont *font);
+void pango_x_fontmap_cache_add (PangoFontMap *fontmap,
+ PangoXFont *xfont);
+void pango_x_fontmap_cache_remove (PangoFontMap *fontmap,
+ PangoXFont *xfont);
+
#endif /* __PANGOX_PRIVATE_H__ */