summaryrefslogtreecommitdiff
path: root/pango/pangoft2.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-12-24 04:43:17 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-12-24 04:43:17 +0000
commit856f7cec6ef16a1624c48e58e0e43520978b9745 (patch)
treeb242fb81284500b5ccee3460a25d8613b7099833 /pango/pangoft2.c
parentd9fb0e4a427970f639c0e922f288cb2aac7dc8fe (diff)
downloadpango-856f7cec6ef16a1624c48e58e0e43520978b9745.tar.gz
Bug 384543 – FcFontMatch misuse
2006-12-23 Behdad Esfahbod <behdad@gnome.org> Bug 384543 – FcFontMatch misuse * pango/pangofc-fontmap.c (pango_fc_face_describe): Call FcConfigSubstitute and FcDefaultSubstitute before calling FcFontMatch. * pango/pangoft2.c (load_fallback_face): Call _pango_ft2_font_map_default_substitute(). * pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_context_substitute): Handle the case of context == NULL.
Diffstat (limited to 'pango/pangoft2.c')
-rw-r--r--pango/pangoft2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangoft2.c b/pango/pangoft2.c
index 35960a43..b7f1470e 100644
--- a/pango/pangoft2.c
+++ b/pango/pangoft2.c
@@ -100,6 +100,8 @@ load_fallback_face (PangoFT2Font *ft2font,
FC_PIXEL_SIZE, FcTypeDouble, (double)ft2font->size / PANGO_SCALE,
NULL);
+ _pango_ft2_font_map_default_substitute (fcfont->fontmap, sans);
+
matched = FcFontMatch (NULL, sans, &result);
if (FcPatternGetString (matched, FC_FILE, 0, &filename2) != FcResultMatch)