Re: Fonts in F27

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Gordon,


On Wed, 15 Nov 2017 20:50:02 -0800 Gordon Messmer <gordon.messmer@xxxxxxxxx> 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:
> > FREETYPE_PROPERTIES=truetype:interpreter-version=35  
> 
> 
> 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:

https://sourceforge.net/projects/freetype/files/freetype2/2.8/
================
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 */
+#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.


Regards,

-- 
wwp

Attachment: pgpsIFHEhSTc_.pgp
Description: OpenPGP digital signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux