freetype
[Top][All Lists]
Advanced

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

Re: [ft] changing the depth of gray for anti-aliasing


From: Werner LEMBERG
Subject: Re: [ft] changing the depth of gray for anti-aliasing
Date: Mon, 13 Feb 2012 08:54:16 +0100 (CET)

> [...] it seems that it is the *application* that is supposed to
> apply gamma correction, because only the application knows the
> colors on which the pixmap created by Freetype2 will be applied.

This is correct.  It's a tricky issue, but in most cases it should be
sufficient to handle black on white and white on black (or more
generally spoken, bright on dark or dark on bright).  No idea whether,
say, `konsole' on KDE does that.

> I found reference to an "infinality" patch that builds this into
> Freetype2,

It's planned to integrate these patches into FreeType itself.

>   The problem is TrueType hinting for small glyphs was designed
>   specifically for a regular, aliased B&W rasterizer! The use of
>   anti-aliasing of any kind is inappropriate, while most Linux
>   people do namely that.

Well, this holds for fonts which contain B/W hints, and which are
(incorrectly) rendered anti-aliased.  Today, many fonts only contain
hints for anti-aliased display, e.g. DejaVu.


    Werner



reply via email to

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