diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-06-05 19:36:33 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-06-05 19:36:33 +0000 |
commit | 7b428440247958a9c52fe29c4aeeecfd6f43f39b (patch) | |
tree | 586a5c61355a622caab97e583e703e2390dbbf8f /pango/pangox-private.h | |
parent | 40638f2de292719e3615e5ae77ff5f97d57300bc (diff) | |
download | pango-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.h | 11 |
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__ */ |