On Wed, 15 Nov 2017 20:50:02 -0800 Gordon Messmer <gordon.messmer(a)gmail.com> wrote:
On 11/15/2017 10:52 AM, Ahmad Samir wrote:
> Most likely it's the new default v40 truetype interpreter;
Maybe, but the users list email you linked to indicated that the new interpreter was
introduced in F26. Looking at the screenshots I took of F25 and F26, fonts appear to be
identical. The change happened in F27.
> you can
> revert to using the old V35 version by exporting an env var:
I tried that setting and didn't see any difference.
The reason, and how to workaround it, is maybe what's explained in
freetype 2.8's changelog:
II. IMPORTANT BUG FIXES - `Light' auto-hinting mode no longer uses TrueType metrics
for TrueType fonts. This bug was introduced in version 2.4.6, causing horizontal scaling
also. Almost all GNU/Linux distributions (with Fedora as a notable exception) disabled the
corresponding patch for good reasons; chances are thus high that you won't notice a
difference. If optical backward compatibility for legacy applications is necessary, you
might enable the AF_CONFIG_OPTION_TT_SIZE_METRICS configuration option. However, it is
strongly recommended to avoid that, adjusting font sizes instead.
- If a TrueType font gets loaded with FT_LOAD_NO_HINTING, FreeType now scales the font
linearly again (bug introduced in version 2.4.6).
In short: recompile your freetype 2.8/2.9 with this patch applied:
--- include/freetype/config/ftoption.h-orig 2018-04-22 11:41:36.038775440 +0200
+++ include/freetype/config/ftoption.h 2018-05-11 11:55:03.185874240 +0200
@@ -909,7 +909,7 @@
/* This problematic commit is now reverted (more or less). */
-/* #define AF_CONFIG_OPTION_TT_SIZE_METRICS */
I had to install freetype 2.9 on my CentOS7 and noticed the font height
change. Applied the patch, now it looks like w/ freetype 2.7.