Freetype hinting mode

I just upgraded to -current, which should become Slackware 15.0 at some point. I immediately noticed that hinting was awful. I tried changing the settings in Xfce, but there was no improvement. Finally, I realised that it should be set up elsewhere.

I needed to set it up in /etc/profile.d/ I opened the file and uncommented the following line:

# Configure Freetype properties. Here this is used to set the default mode
# for font hinting. Other controllable properties are listed in the section
# 'Controlling FreeType Modules' in the reference's table of contents.
# Three hinting settings are available:

# This is the classic hinting mode used in Freetype 2.6.x:
export FREETYPE_PROPERTIES="truetype:interpreter-version=35"

# This is Infinality mode, which was never enabled by default. It is slower
# than the new subpixel hinting mode, but said to be more accurate:
#export FREETYPE_PROPERTIES="truetype:interpreter-version=38"

# This is the new default subpixel hinting mode used in Freetype 2.7.x. It is
# derived from the Infinality code base stripped to the bare minimum with all
# configurability removed in the name of speed and simplicity:
#export FREETYPE_PROPERTIES="truetype:interpreter-version=40"

Also, many of the traditional fonts, such as Monospace, somehow look like crap in the text editors. I ended up specifying the DejaVu fonts, instead.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s