freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] [Rendering Regressions] Outlines vs. Bitmaps


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] [Rendering Regressions] Outlines vs. Bitmaps
Date: Mon, 19 Mar 2018 10:58:05 -0400

> > Concretely: is the outline-to-bitmap algorithm definitive and
> > final or is it subject to (probably subtle) changes every now and
> > then?
>
> Most changes happen to the outlines.  However, from time to time, both
> the B/W and graymap rasterizers get modified; for such cases it is
> necessary to run the whole test suite.

I doubt that coverage map calculations would fundamentally change. We
literally calculate percentages of square-grid pixels covered by
outlines. There are however rounding errors of two kinds. First, even
currently 64-bit and 32-bit algorithms are different and the resulting
maps are not exactly the same. These differences are not visible to
the naked eye, they are literally rounding errors of ±1 out of 255.
Such discrepancies should not be considered. Second, some rounding
happens when flattening Bézier curves. This can be tuned differently
and the discrepancies might be substantial and visible, The text
appearance perception is however dominated by vertical and horizontal
stems, which are not affected by flattening.

That being said. It is not trivial to judge the improvement of text
appearance from outlines alone without rasterization. I think the
balance between the contrast of images and the regularity in stem and
letter spacing is the key. This balance is highly subjective though.



reply via email to

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