diff options
author | John Ralls <jralls@ceridwen.us> | 2017-08-15 09:21:26 +0200 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2017-08-15 09:26:36 +0200 |
commit | 8ab2cc198469b4a46b1536c4f5c5d3396a6444b4 (patch) | |
tree | e98ab683e7fb7afbf39fac6796bde905f14ca38a /pango/pangocoretext-private.h | |
parent | 599ffcf042bbca6f87edff0e241958523145294d (diff) | |
download | pango-8ab2cc198469b4a46b1536c4f5c5d3396a6444b4.tar.gz |
CoreText: Remove absolute size and scaling to screen resolution.
Cairo's CGFont backend already handles scaling fonts to the display
resolution, so scaling to the screen screen resolution in Pango's
CoreText backend generates double-sized text on a Retina display.
The layout test depended on providing a (bogus) resolution of 96DPI and
scaling the font to it in order to obtain the "expected" layout
results. This is replaced by adjusting the font size in test-layout.c
if Pango is compiled for CoreText.
https://bugzilla.gnome.org/show_bug.cgi?id=782393
Diffstat (limited to 'pango/pangocoretext-private.h')
-rw-r--r-- | pango/pangocoretext-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangocoretext-private.h b/pango/pangocoretext-private.h index 8bf4c755..c6c642cd 100644 --- a/pango/pangocoretext-private.h +++ b/pango/pangocoretext-private.h @@ -99,7 +99,7 @@ void _pango_core_text_font_set_ctfont (PangoCoreTextF PangoFontDescription *_pango_core_text_font_description_from_ct_font_descriptor (CTFontDescriptorRef desc); _PANGO_EXTERN -int pango_core_text_font_key_get_absolute_size (const PangoCoreTextFontKey *key); +int pango_core_text_font_key_get_size (const PangoCoreTextFontKey *key); _PANGO_EXTERN double pango_core_text_font_key_get_resolution (const PangoCoreTextFontKey *key); _PANGO_EXTERN |