Search code examples
linuxfontsfreetypecleartypefreetype2

How to have subpixel rendering of font for LCD (cleartype on windows) on linux?


I am working on embedded system, with own windowing system and rendering library. Before someday when I installed Ubuntu, to my surprise it has LCD subpixel rendering. It really looks cool to have it on my device. Because it is very readable.

Currently I ask for particular glyph in freetype, freetype gives me one memory buffer with values of alpha, with that it is not possible to have subpixel rendering. What I have is normal antialiazed font. As in subpixel - rendering left most pixel of font is anti-aliazed with Red and Rightmost with Blue ( Assuming Screen is RGB ).

Is there any methods with which freetype can give me information that whether current pixel is left or right or centerone?

Thanks, Sunny.


Solution

  • freetype can do it