freetype
[Top][All Lists]
Advanced

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

Re: [ft] Suggestion/Inquiry: keeping metrics.horiAdvance for emboldened


From: Werner LEMBERG
Subject: Re: [ft] Suggestion/Inquiry: keeping metrics.horiAdvance for emboldened fixed-width fonts
Date: Thu, 19 Feb 2015 09:24:16 +0100 (CET)

>> Finally, the correct way to embolden glyphs without increasing the
>> advance width is to *move* the glyphs themselves a little to the
>> left after emboldening!  Otherwise it can happen that the very
>> right of emboldened glyph gets overwritten (or cut off) by the next
>> glyph.
>
> But then, that could cause overwriting/cutting off on the left.

This is much more unlikely.  A glyph's advance width normally looks
like this.

     +-----+====================+-----+
        ^            ^             ^
  left side bearing  |        right side bearing
                     |
             glyph's bbox width

The emboldening code increases all three values.

     +--------+==========================+--------+

If you squeeze this into the old advance width, you get this.

     +-------+========================+

As can be seen, the glyph gets cut off.  However, if you center the
new bbox width, chances are high that it works as expected.

     +--+==========================+--+


    Werner



reply via email to

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