From b977724d2b8ed77829b3c7cd988b45db9b12090f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 28 Jan 2009 22:08:18 +0000 Subject: =?UTF-8?q?Bug=20566727=20=E2=80=93=20PangoFontsetLazy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2009-01-27 Behdad Esfahbod Bug 566727 – PangoFontsetLazy * pango/pangofc-fontmap.c: Rework caching. Cache FcFontSort results separately from PangoFontset's. Add PangoFcFontset which is lazy and does not create fonts until it really needs to. Use FcFontMatch() and only do FcFontSort() if fallback fonts are needed. svn path=/trunk/; revision=2809 --- pango/pangofc-fontmap.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pango/pangofc-fontmap.h') diff --git a/pango/pangofc-fontmap.h b/pango/pangofc-fontmap.h index 8de4aa33..d3f113a9 100644 --- a/pango/pangofc-fontmap.h +++ b/pango/pangofc-fontmap.h @@ -29,6 +29,9 @@ G_BEGIN_DECLS + +#ifdef PANGO_ENABLE_BACKEND + /** * PangoFcFontsetKey: * @@ -39,7 +42,7 @@ G_BEGIN_DECLS **/ typedef struct _PangoFcFontsetKey PangoFcFontsetKey; -const PangoLanguage *pango_fc_fontset_key_get_language (const PangoFcFontsetKey *key); +PangoLanguage *pango_fc_fontset_key_get_language (const PangoFcFontsetKey *key); const PangoFontDescription *pango_fc_fontset_key_get_description (const PangoFcFontsetKey *key); const PangoMatrix *pango_fc_fontset_key_get_matrix (const PangoFcFontsetKey *key); double pango_fc_fontset_key_get_absolute_size (const PangoFcFontsetKey *key); @@ -60,6 +63,9 @@ const FcPattern *pango_fc_font_key_get_pattern (const PangoFcFontKey *key) const PangoMatrix *pango_fc_font_key_get_matrix (const PangoFcFontKey *key); gpointer pango_fc_font_key_get_context_key (const PangoFcFontKey *key); +#endif + + /* * PangoFcFontMap */ -- cgit v1.2.1