diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-12-24 04:43:17 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-12-24 04:43:17 +0000 |
commit | 856f7cec6ef16a1624c48e58e0e43520978b9745 (patch) | |
tree | b242fb81284500b5ccee3460a25d8613b7099833 /pango/pangofc-fontmap.c | |
parent | d9fb0e4a427970f639c0e922f288cb2aac7dc8fe (diff) | |
download | pango-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/pangofc-fontmap.c')
-rw-r--r-- | pango/pangofc-fontmap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index 9a343877..f383e904 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -1704,7 +1704,10 @@ pango_fc_face_describe (PangoFontFace *face) NULL); g_assert (match_pattern); - + + FcConfigSubstitute (NULL, match_pattern, FcMatchPattern); + FcDefaultSubstitute (match_pattern); + result_pattern = FcFontMatch (NULL, match_pattern, &res); if (result_pattern) { |