[pango] Fix CoreText font scaling again
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Fix CoreText font scaling again
- Date: Thu, 2 May 2013 17:42:37 +0000 (UTC)
commit 5b38ec2ff9f26b0e3204ba79c1d1b5c0d2b92edb
Author: Behdad Esfahbod <behdad behdad org>
Date: Thu May 2 13:41:32 2013 -0400
Fix CoreText font scaling again
This partially reverts 25ad29b488d3e2ae10e4fee25602409fa39207f1
which itself was a revert. Apparently we want the change in
CoreText, but not on Win32...
See mailing list discussion.
pango/pangocairo-coretextfont.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pango/pangocairo-coretextfont.c b/pango/pangocairo-coretextfont.c
index 290a5cc..0f2a9ef 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]