[Top][All Lists]

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

Re: [ft] Emboldening and then hinting a glyph with FreeType

From: Werner LEMBERG
Subject: Re: [ft] Emboldening and then hinting a glyph with FreeType
Date: Fri, 20 Jan 2017 08:57:35 +0100 (CET)

> Is there any other possibility to "hint" transformed glyphs? For
> example, by calling hinting function directly or something like
> that?

Well, the TrueType hinting mechanism is tightly bound to the outline
and its rasterization to the grid depending on the selected PPEM.
Basically, it is *not* possible to apply TrueType hints after a
transformation while yielding sensible results.  Nikolaus tries to
replace the horizontal hinting with horizontal emboldening (note the
word `replace'), but even this is quite a complicated issue; right
now, he is stuck.

> Also I have noticed that proper scaling could help to improve font
> displaying dramatically. If x-height is aligned to pixel grid, the
> result looks much like "light hinting" even without hinting at all.

Indeed, this is what the light hinter mainly does: it scales the
glyphs vertically so that the x height gets aligned to the grid, then
it shifts the outlines so that horizontal tangents lie on the grid
also (if possible and sensible).

> I appreciate any thoughts and advice on this.

I fear that I can't give much advice here.[*]


[*] I assume that you know that FreeType produces *coverage* bitmaps,
    this is, you have apply proper alpha blending and gamma

reply via email to

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