[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] How to get Horizontal Advance on Stroked Glyph
From: |
johnpf74 |
Subject: |
Re: [ft] How to get Horizontal Advance on Stroked Glyph |
Date: |
Mon, 21 May 2012 06:47:14 -0700 (PDT) |
Thank you very much Werner!
Does that mean if, in general, if I add an N pixel stroke, I would add a 2*N
pixel advance to account for the stroke on each side, where N is an integer?
Would I also do the same for advancing each line of text vertically?
Also, how do I advise a patch to update the documentation? Is that something
that you will handle?
Thanks, John
Werner LEMBERG wrote:
>
>
>> 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
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype
>
>
--
View this message in context:
http://old.nabble.com/How-to-get-Horizontal-Advance-on-Stroked-Glyph-tp33868633p33882784.html
Sent from the Freetype - User mailing list archive at Nabble.com.