freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] How the new lcd filter coefficients in 2.6.2 were choosen?


From: Vladimir A . Pavlov
Subject: [ft-devel] How the new lcd filter coefficients in 2.6.2 were choosen?
Date: Wed, 03 May 2017 01:48:53 +0300

Hello.

I have a question but first I'd like to thank you for the hard work you do.
And especially for the progress achieved since 2.4.x versions.

I had never liked how freetype renders subpixel-antialiased fonts. They
looked very colorful and "ugly-reliefy" - they looked as if they has a 3d
height above the monitor (I prefer unhinted rendering btw).

It was highly uncomfortable for my eyes to look at them after ~2 hours at a
computer. In about freetype 2.4.8 I just turned subpixel antialiasing off and
start using "plain" grayscaling rendering.

But recently I turned subpixel rendering back on and saw... it's now awesome!
I really like how text looks now (2.7.1). The letters are nicely beautiful,
non-reliefy, look more similar to macOS rendered ones (than in 2.4.x) and...
my eyes are happy even after ~8 hours at the monitor!

I cannot exactly say how you did it guys. Just THANK YOU! Font rendering
now is visually MUCH better than it was in 2.4.x. I cannot say what makes
the difference since visually it looks very similar to what was before. But
feelings are what tells me the actual huge difference.



And now THE QUESTION.

One of the most important reasons of such improvements for me I guess
is the default lcd filter change in 2.6.2.

Here https://www.freetype.org/freetype2/docs/reference/ft2-lcd_filtering.html
I found that the new coefficients "08 4d 56 4d 08" are "normalized and
color-balanced". But AFAIU there are many filters possible that are
"normalized and color-balanced" which make text look terrible.
"2a 2b 56 2b 2a" is an example of such a filter.

So, how did you get the values used currently as the default? Are there other
properties besides the two mentioned, that helped you to "calculate" such a
filter? Or did you just try different variants and choose the one that looked
better for you?

-- 
Vladimir A. Pavlov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]