freetype
[Top][All Lists]
Advanced

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

Re: [ft] How to get Horizontal Advance on Stroked Glyph


From: Werner LEMBERG
Subject: Re: [ft] How to get Horizontal Advance on Stroked Glyph
Date: Sat, 19 May 2012 08:43:54 +0200 (CEST)

> I am trying to get the advance amount for a stroked glyph. I cannot
> find it anywhere in the documentation. I have a code snippet
> below. Basically when I do the algorithm, the advance amount is not
> accounting for the width of the outline, so the next character's
> outline overlaps the previous character.

As you correctly state, the stroker doesn't increase the advance
width.  You have to do this by yourself.

Reason for not modifying the advance width is the non-linearity
between stroke thickness and advance width.  For example, you might
add a very slight `boldness' (say, 0.2px) to a glyph without wanting
to change the advance widths at all.

Please advise a patch to the documentation to make this clear.


    Werner



reply via email to

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