summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2009-01-28 22:08:18 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2009-01-28 22:08:18 +0000
commitb977724d2b8ed77829b3c7cd988b45db9b12090f (patch)
treefde725224adc157e1ccc3b072bf6737572f3360f /pango/pangofc-fontmap.h
parent042b6e674a82f7749c9762170aef4b5fb52a4f05 (diff)
downloadpango-b977724d2b8ed77829b3c7cd988b45db9b12090f.tar.gz
Bug 566727 – PangoFontsetLazy
2009-01-27 Behdad Esfahbod <behdad@gnome.org> 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
Diffstat (limited to 'pango/pangofc-fontmap.h')
-rw-r--r--pango/pangofc-fontmap.h8
1 files changed, 7 insertions, 1 deletions
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
*/