[cairo] Freetype/OpenGL experiment

Wolfgang Draxinger wdraxinger.maillist at draxit.de
Sat Dec 24 05:47:20 PST 2011


On Fri, 23 Dec 2011 20:05:30 +0100
Nicolas Rougier <Nicolas.Rougier at inria.fr> wrote:

> All the sources/demos/screenshots are available from:
> http://code.google.com/p/freetype-gl/

Excellent work. I think it still need to incorporate proper gamma
compensation, you can see in the subpixel demo, that fine strokes get
"washed out". Make FreeType output glyphs linear, create the OpenGL
context as sRGB output context, or add gamma ramping postprocessor.
Also to further improve quality, render the glyphs at higher
intermediary resolution than their target resolution, to allow for
resampling (rasterization is resampling!)

IMHO the whole color management belongs into the lower levels of the
graphics system. Ideally programs worked in a contact color space, and
only when things get transmitted to the output device the conversion to
the destination color space happens.

That being done the only way to further improve the quality would
probably involve direct rasterization of the glyphs to the target
buffer (on the GPU).


Wolfgang


More information about the cairo mailing list