[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Drawing unfilled shapes with FreeType2
From: |
Marco Wertz |
Subject: |
Re: [ft] Drawing unfilled shapes with FreeType2 |
Date: |
Tue, 28 Oct 2014 11:27:06 +0100 |
> > How can I get FreeType2 to draw only the outline of my FT_Outline
> > object with a fixed pixel stroke width?
>
> Have a look at the function `Render_Stroke' in the `ftview' demo
> program. It uses the FreeType stroker API.
Thanks for the pointer. This should get me started.
>
> > When I use FT_Outline_Get_Bitmap() FreeType2 always fills the shape
> > and I don't see any API that allows me to say "please do not fill
> > the shape!" ... FT_Outline_Render() also doesn't seem to have an
> > option to make FreeType2 draw unfilled shapes.
>
> Please bear always in mind that FreeType is a *font* rendering
> library, not a general-purpose drawing engine.
Yes, I know, but AFAICS it could be utilized for this purpose quite well.
I need a library that can draw antialised Bézier curves and I don't want
to use cairo because it is LGPL.
Marco
- [ft] Drawing unfilled shapes with FreeType2, Marco Wertz, 2014/10/28
- Re: [ft] Drawing unfilled shapes with FreeType2, Werner LEMBERG, 2014/10/28
- Re: [ft] Drawing unfilled shapes with FreeType2,
Marco Wertz <=
- Re: [ft] Drawing unfilled shapes with FreeType2, Wojciech Mamrak, 2014/10/28
- Re: [ft] Drawing unfilled shapes with FreeType2, Werner LEMBERG, 2014/10/28
- Re: [ft] Drawing unfilled shapes with FreeType2, Wojciech Mamrak, 2014/10/28
- Re: [ft] Drawing unfilled shapes with FreeType2, Wojciech Mamrak, 2014/10/28
- Re: [ft] Drawing unfilled shapes with FreeType2, Werner LEMBERG, 2014/10/28