diff options
author | John Ralls <jralls@ceridwen.us> | 2018-04-29 16:03:08 -0700 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2018-05-08 17:55:35 -0700 |
commit | f661cdbf8cfbdb2ba7241d8dfa4a579c6dfe0a94 (patch) | |
tree | ee57d3ef3507c65bd5a74c13ad10f63cb4c72964 /tests/test-layout.c | |
parent | edb0dff3454d4d9ce6242a0f30ddaef993ee1e89 (diff) | |
download | pango-f661cdbf8cfbdb2ba7241d8dfa4a579c6dfe0a94.tar.gz |
Restore scaling of CoreText fonts.
Fixes bug 787867.
Diffstat (limited to 'tests/test-layout.c')
-rw-r--r-- | tests/test-layout.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/test-layout.c b/tests/test-layout.c index 07ca6909..4bce4439 100644 --- a/tests/test-layout.c +++ b/tests/test-layout.c @@ -265,18 +265,9 @@ test_file (const gchar *filename, GString *string) parse_params (contents, &width, &ellipsize_at, &ellipsize, &wrap); layout = pango_layout_new (context); -/* The layout tests are predicated on scaling fonts to 90 DPI, but - * Apple's font APIs (CoreText and CoreGraphics) don't work that way - * so we have to use a bigger font to get the results to agree with - * the expected values. - */ -#if defined (HAVE_CORE_TEXT) && defined (HAVE_CAIRO_QUARTZ) - desc = pango_font_description_from_string ("Cantarell 14.5"); -#else desc = pango_font_description_from_string ("Cantarell 11"); -#endif pango_layout_set_font_description (layout, desc); - pango_font_description_free (desc); + pango_font_description_free (desc); pango_layout_set_markup (layout, markup, length); g_free (contents); |