Page MenuHome

Text-hinting support
ClosedPublic

Authored by Tommi Hyppänen (ambient) on May 4 2018, 2:43 PM.

Details

Summary

Adds an option to the user preferences panel to turn on text-hinting. Also adds text-hinting support into Blender source code, same way as anti-aliasing.


Diff Detail

Repository
rB Blender
Branch
arcpatch-D3201_1
Build Status
Buildable 1867
Build 1867: arc lint + arc unit

Event Timeline

Hi guys,
Any chance of this patch (or something similar) being included in 2.8?
It improves a lot the readability of the interface without having to raise the font size.

I just applied to my compiled blender, and it makes all text more readable. It just works great, like magic. It should definitely be in.

Campbell Barton (campbellbarton) requested changes to this revision.Jul 31 2018, 8:08 AM

Even though this follows current behavior of 'anti-aliasing', this shouldn't impact fonts used for rendering (stamp text, generated UV text... etc).
It should only impact UI text.

This revision now requires changes to proceed.Jul 31 2018, 8:08 AM

Note, even though the text is on average slightly more readable after this, it makes words take up noticeably more room.
There are also examples where the words weren't hard to read to begin with.

This impacts the vertical layout for 2.8 where we're often running out of space already.

Since it's a preference we can always change the default, applying.

This revision is now accepted and ready to land.Jul 31 2018, 8:19 AM

I've reverted the default back to no hinting temporarily, as it appears this patch was only tested on Linux with newer FreeType versions, while our buildbot and release environments use much older ones. Once FreeType has been upgraded we can change the default again, without that the results look bad.

Even with newer FreeType don't look that great to me, perhaps due to missing subpixel positioning and linear color blending support in BLF.