freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] [ttfautohint] stem width handling is now selectable


From: Werner LEMBERG
Subject: Re: [ft-devel] [ttfautohint] stem width handling is now selectable
Date: Tue, 03 Jul 2012 12:09:15 +0200 (CEST)

Hello Vern!


In git, I've now fixed the situation displayed in your
`Capture-G-win7GDI.png' image (showing Open Sans at 21px, please look
at the ugly rendering of digit 3, for example): It was a buglet in
FreeType's autofit module which didn't show up because of its smooth
rendering algorithm.

The old code contained both a (scaled) stem width of 95 and 97 units;
for the strong stem width algorithm, the former was rounded to 1px but
the latter to 2px.  The new code avoids this by unifying such almost
identical stem widths, taking the mean value, 96.  As a threshold,
widths which are different less than or equal to 1% of the em size are
unified; this is certainly not noticeable visually.


    Werner

PNG image

PNG image


reply via email to

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