summaryrefslogtreecommitdiff
path: root/pango/pangofc-font.c
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-font.c
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-font.c')
-rw-r--r--pango/pangofc-font.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 64199239..133a4df4 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -754,6 +754,9 @@ _pango_fc_font_shutdown (PangoFcFont *font)
if (PANGO_FC_FONT_GET_CLASS (font)->shutdown)
PANGO_FC_FONT_GET_CLASS (font)->shutdown (font);
+
+ if (font->fontmap)
+ _pango_fc_font_map_remove (PANGO_FC_FONT_MAP (font->fontmap), font);
}
/**