achaphiv / ppa-fonts

165 stars 11 forks source link

How to enable v40 FreeType interpreter on Ubuntu 16.04 using your PPA? #35

Closed kq01526 closed 6 years ago

kq01526 commented 7 years ago

@achaphiv After installing your PPA on Ubuntu 16.04, is there anything else that needs to be done to enable the new v40 interpreter?

achaphiv commented 7 years ago

I remember I turned it on for #28, but people didn't like the results. I.E. still not as good as infinality.

I vaguely recall it being a compile time flag.

kq01526 commented 7 years ago

@achaphiv Thanks, so simply installing the PPA should be enough? Is there any way to check which interpreter version is currently being used?

Also, what would I need to set the hinting to? None? Slight? Medium? Full?

When reading through https://www.reddit.com/r/linux/comments/4tb2dt/freetype_27_bringing_directwritecleartypelike/ I get the idea to set hinting to "None" to enable v40? Is that correct?

kq01526 commented 7 years ago

Okay, so according to https://github.com/achaphiv/ppa-fonts/issues/29#issuecomment-247732039 you can switch between the different interpreters via the command line, by exporting an environment variable.

But v40 should be the default anyway, right? So that should not be necessary when you want v40, right?

kq01526 commented 7 years ago

Also came across this: https://www.freetype.org/freetype2/docs/reference/ft2-tt_driver.html

kq01526 commented 7 years ago

Looks like FreeType 2.8.1 adds a new default: https://github.com/achaphiv/ppa-fonts/issues/36

pandasauce commented 6 years ago

PPA forces v38 by default. v40 is the default as of 2.7 upstream. If you want v40, you don't need the PPA. In order for it to be configurable at runtime, you need the ( 1 | 2 ) version of this patch.

achaphiv commented 6 years ago

Yep. I initially enabled both v38 and v40, but realized it was pointless. Why use this PPA when you can just use the official packages?

To summarize for anyone else stumbling upon this ticket:

This PPA is currently at option Interpreter v38.

I would like to be at option Infinality custom patches, but the patches have not been updated for freetype 2.9.x+. See #36.

pandasauce commented 6 years ago

@achaphiv your preferred option is now available for 2.9.1. These are the changes you need to build it:

The line height bugs from FreeType are still around, they were introduced in the upstream FreeType code base somewhere around 2.8, but other than that it works fine.

achaphiv commented 6 years ago

Closing this issue since v40 is just the default engine for the regular ubuntu packages.