freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Weird behaviour in FT_Glyph_StrokeBorder


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] Weird behaviour in FT_Glyph_StrokeBorder
Date: Wed, 24 Jan 2018 14:00:05 -0500



On Wed, Jan 24, 2018 at 8:43 AM, Foaly <address@hidden> wrote:
> As you can see in the picture (Hello #4) a glyph
> with a transarent color the outline is not only outside the glyph, but
> also inside the glyph bounds.

Indeed, the center of the outline brush follows the glyph outline creating *two* border outlines outside and inside, with some paint geting inside.

> Some users complained about it, so we
> thought about fixing it by using FT_Glyph_StrokeBorder with inside =
> false. According to the documentation this should give us an outline
> along the outside on the glyph only.

Yes, but the brush paints the entire space within this border effectively filling the glyph. The shape you are asking about consists of BOTH the outside border outline AND the original glyph outline, with the orientation of the latter reversed. I do not think we have an off-the-shelf solution. You are going to combine the outlines yourself. Some useful functions are here. We do not have a function that merges outlines, which we probably should have.

reply via email to

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