freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Autohinter: stem darkening, first rough prototype


From: Nikolaus Waxweiler
Subject: Re: [ft-devel] Autohinter: stem darkening, first rough prototype
Date: Tue, 22 Sep 2015 00:19:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

Emboldening changes the outline but not the metrics or blue zones. It
is up on you to deal with it. Here is an idea to brush it aside
gracefully: embolden and scale back. Yes, emboldenig changes the
bounding box predictably, so that you can restore it by scaling back.
This will eat away some of your intended emboldening, so use larger
values to begin with. This should roughly preserve the outer contour
of the glyph as well as metrics and blue zones.

Clever, and it mostly works (no values change):

http://postimg.org/image/ylk5yy7nn/full/ (no scaling)
http://postimg.org/image/wsh9ammgz/full/ (scaling)

I still spotted one glitch so far, Liberation Sans's "E" has the middle horizontal stem snapped 1 pixel to low at various sizes. Maybe a rounding problem.

The downside of scaling is, of course, that "i"s are back in the war...

(Code as always in my repo: https://github.com/madig/freetype2/tree/stem-darkening-autohinter)



reply via email to

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