summaryrefslogtreecommitdiff
path: root/pango/pangocairo-coretextfont.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-03-04 17:45:03 -0500
committerBehdad Esfahbod <behdad@behdad.org>2013-03-04 17:45:03 -0500
commit25ad29b488d3e2ae10e4fee25602409fa39207f1 (patch)
tree67f37c62fcb187309531d5962a6ae99ad2f028be /pango/pangocairo-coretextfont.c
parent786781e6eb44444632a3b7fab5c8ef8cbaccb4fa (diff)
downloadpango-25ad29b488d3e2ae10e4fee25602409fa39207f1.tar.gz
Revert "Fix Win32 and CoreText cairo backends to take cairo CTM into account"
This reverts commit b359bb484bc7d27a835cfd6d9ffcaed582ebf2ae. Bug 694918 - Pango layout is rendered in wrong size if we have non-identity cairo transformation matrix I was wrong blindly copying this logic from pangocairo-fc into pangocairo-win32 and pangocairo-quartz. The reason we need the it in pangofc is because the fontsize we get back from fontconfig is multiplied by the ctm scale factor, so we undo it when loading the font. The same is NOT true about the non-fc backends, so the copying was totally wrong.
Diffstat (limited to 'pango/pangocairo-coretextfont.c')
-rw-r--r--pango/pangocairo-coretextfont.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pango/pangocairo-coretextfont.c b/pango/pangocairo-coretextfont.c
index 0f2a9ef1..290a5ccf 100644
--- a/pango/pangocairo-coretextfont.c
+++ b/pango/pangocairo-coretextfont.c
@@ -220,8 +220,6 @@ _pango_cairo_core_text_font_new (PangoCairoCoreTextFontMap *cafontmap,
abs_size = pango_core_text_font_key_get_absolute_size (key);
size = pango_units_to_double (abs_size);
- size /= pango_matrix_get_font_scale_factor (pango_core_text_font_key_get_matrix (key));
-
ctdescriptor = pango_core_text_font_key_get_ctfontdescriptor (key);
font_ref = CTFontCreateWithFontDescriptor (ctdescriptor, size, NULL);