summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-08-08 17:04:45 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-08-08 17:04:45 +0000
commit063c9a3aa0688963ee16b3f68bae4283a778a12f (patch)
treed1a856183d9370370821de37870581ab65854c4d /pango
parent82e306885dbb857f2fe0a013bf57ac9890353963 (diff)
downloadpango-063c9a3aa0688963ee16b3f68bae4283a778a12f.tar.gz
Move DPI substitution before FcDefaultSubstitute so it actually works.
Fri Aug 8 12:59:42 2003 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-fontmap.c (pango_ft2_font_map_default_substitute): Move DPI substitution before FcDefaultSubstitute so it actually works.
Diffstat (limited to 'pango')
-rw-r--r--pango/pangoft2-fontmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangoft2-fontmap.c b/pango/pangoft2-fontmap.c
index bd49ec58..7efe0287 100644
--- a/pango/pangoft2-fontmap.c
+++ b/pango/pangoft2-fontmap.c
@@ -342,9 +342,9 @@ pango_ft2_font_map_default_substitute (PangoFcFontMap *fcfontmap,
if (ft2fontmap->substitute_func)
ft2fontmap->substitute_func (pattern, ft2fontmap->substitute_data);
- FcDefaultSubstitute (pattern);
if (FcPatternGet (pattern, FC_DPI, 0, &v) == FcResultNoMatch)
FcPatternAddDouble (pattern, FC_DPI, ft2fontmap->dpi_y);
+ FcDefaultSubstitute (pattern);
}
static PangoFcFont *