[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Text outline rendering
From: |
suzuki toshiya |
Subject: |
Re: [ft] Text outline rendering |
Date: |
Tue, 18 Jun 2013 18:28:05 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130518 Icedove/17.0.5 |
Hi Yves,
To retrieve the vector data from TTF via FreeType2, FT_Outline_Decompose()
function would be useful. Giving a function pointer table calling the functions
to move currentpoint, or to draw straight, cubic or conic curves,
FT_Outline_Decompose()
calls them to trace the vector data in the "outline" member in glyph slot.
I've ever written a small sample making SVG by calling FT_Outline_Decompose().
If you want, I will send it.
Regards,
mpsuzuki
On 06/18/2013 06:05 PM, Yves Daoust wrote:
> Hi All,
>
> I am new to FreeType.
>
> I am involved in a project where text needs to be rendered in vector form. I
> mean I have text strings, font information (TTF), possible geometric
> transforms, and I need to generate the corresponding outlines in vector form
> (sequences of Bezier arcs, so just lists of control point coordinates; I
> don’t need the rendered bitmap).
>
> After a first search in the documentation, I am convinced that all the
> required machinery is there but I want to be sure this is feasible. If yes,
> where can I start ?
>
> Regards,
>
> Yves Daoust
>
>
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype
>