Randall R Schulz
On Monday 16 June 2008 00:43, Mike FABIAN wrote:
Randall R Schulz
さんは書きました: But if you don't like subpixel hinting at its best, that's your prerogative, but I find it vastly superior.
I don’t like it because the colour fringes it creates are very obvious.
I believe the reason for this is that no gamma correction is done.
Test it with
ftview 20 /usr/share/fonts/truetype/DejaVuSans.ttf
On my 10.3 system, where I've rebuilt the FreeType packages to enable hinting,
You mean subpixel hinting. Normal hinting and byte code hinting is always enabled in our freetype2 packages anyway. By the way, you don’t need to recompile your freetype2 packages yourself to get subpixel hinting enabled, just search for freetype2 here http://software.opensuse.org/search and use the packages from the M17N repository, for example: http://download.opensuse.org/repositories/M17N/openSUSE_11.0/i586/freetype2-... These have subpixel hinting enabled.
I cannot replicate the symptoms you describe. I don't have 11.0 installed anywhere to compare.
It is the same on 10.3 and 11.0.
I am also dubious about this tool. When it says hinting is active, the font (DejaVuSans, i.e.) looks like a naively rendered bitmap with stair-stepping quite obvious.
Maybe you have anti-aliasing switched off? Look at the help you get with F1. a : toggle anti-aliasing f : toggle forced autohinting (byte code interpreter is not used if autohinting is forced) h : toggle outline hinting (here you can switch off hinting completely) L : cycle through LCD modes You need the last option, ‘L’ to switch on subpixel (i.e. coloured) hinting. This will only work if you have a freetype2 package installed which has subpixel hinting enabled, for example the one from my M17N repository which I mentioned above.
When it says hinting is off, I see smoothing. Changing the gamma likewise does not produce any color fringing.
Changing the gamma will only have an influence on the colour fringing if you have already switched on the colour fringes using ‘L’. Then, changing the gamma will have an influence of the exact colour shades used. With gamma = 1.0, the colour shades are extremely obvious and disturbing (that’s because they are not calculated correctly, gamma correction should be done!). With gamma = 2.1, the colour shades are still there but the colours have changed and it looks much better. A comparison with the coloured rendering of Windows Vista or Windows XP then shows that with gamma = 2.1 it almost looks the same but with gamma = 1.0 there is a huge difference in the colour shades used.
The default view (the way the application starts up from the command you gave) is attached.
But under no combination of the 'a' and the 'h' toggles do I see color fringing of any sort or degree.
You need the ‘L’ key to produce the colour fringes!
(And of course a freetype2 package with subpixel hinting enabled).
--
Mike FABIAN