summaryrefslogtreecommitdiff
path: root/pango/pangocairo-coretextfont.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-12-05 20:27:47 -0500
committerBehdad Esfahbod <behdad@behdad.org>2012-12-05 20:28:45 -0500
commitb359bb484bc7d27a835cfd6d9ffcaed582ebf2ae (patch)
treec1b9158302e719ca50f9d8b530689814af950603 /pango/pangocairo-coretextfont.c
parentd1a8997ac29764dd160a4cad7b291669ae6f5b36 (diff)
downloadpango-b359bb484bc7d27a835cfd6d9ffcaed582ebf2ae.tar.gz
Fix Win32 and CoreText cairo backends to take cairo CTM into account
Diffstat (limited to 'pango/pangocairo-coretextfont.c')
-rw-r--r--pango/pangocairo-coretextfont.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangocairo-coretextfont.c b/pango/pangocairo-coretextfont.c
index 290a5ccf..0f2a9ef1 100644
--- a/pango/pangocairo-coretextfont.c
+++ b/pango/pangocairo-coretextfont.c
@@ -220,6 +220,8 @@ _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);