freetype-devel
[Top][All Lists]
Advanced

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

Re: Build system considerations


From: Alexei Podtelezhnikov
Subject: Re: Build system considerations
Date: Tue, 19 May 2020 11:31:49 -0400

On Tue, May 19, 2020 at 10:59 AM Ben Wagner <address@hidden> wrote:
> > [Presently, FT_CONFIG_OPTION_SUBPIXEL_RENDERING only alternates
> > between ClearType and Harmony algorithms. Most users won't be able
> > to tell them apart.]
>
> Note that some users of FreeType are never going to use subpixel
> rendering at runtime and could do without the code. The actual amount
> of code is pretty negligible, but if they are never going to use it
> it's just extra weight, so it's nice to be able to configure it out,
> no matter how small the extra code for it is.

Ben,
It is less than negligible, it is nothing. Literally:
- Harmony only shifts the outline around (6 extra function calls)
- ClearType scales the outline and scales it back, plus filtering.

This is nothing in comparison to calculating the bounding boxes,
allocating the memory, Bezier flattening, and actual rendering.
The whole smooth.o is now only 88k. The Harmony overhead is not more
than 5% or 4k. Why bother?

Alexei



reply via email to

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