> I don’t suppose there is a simple way to stroke text with a filled inside?

I’ve figured out the answer to this at least - by replacing FT_Glyph_Stroke 
with FT_Glyph_StrokeBroker with inside set to 0.

I guess I’m just curious about the relationship between the stroked shape and 
the unstroked glyph. If the radius of a stroke is not centred around the 
outline of the unstroked glyph, then what determines what it is centred around?

> On 18 Jan 2025, at 12:03 am, Andrew Murray <radarh...@gmail.com> wrote:
> 
> Hi,
> 
> Over at Python Pillow, a user has reported a gap between a regular rendering 
> of a font and a stroked rendering of a font - 
> https://github.com/python-pillow/Pillow/issues/8697
> 
> To visually demonstrate what I mean, a simpler Pillow script creates the 
> following image with Times New Roman.ttf on my macOS 15.2 machine - there is 
> a circle gap around the dot in the ‘I'.
> 
> <out.png>
> 
> I’ve attached stroke.c for a FreeType-only reproduction, and output.txt to 
> show what I see when I run the script - a simple rendering that shows that 
> the width of the dot in the ‘I’ is smaller in width than the hole created 
> when rendered with stroke.
> 
> <stroke.c>
> <output.txt>
> 
> So, is this ‘gap’ expected behaviour from FreeType? I’d be surprised if was a 
> bug.
> 
> If it is accepted behaviour, I don’t suppose there is a simple way to stroke 
> text with a filled inside?
> 
> Thanks.

Reply via email to