[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 19:13:50 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130518 Icedove/17.0.5 |
I've sent it to Yves privately. I will try to improve
the quality of the code, to add it to freetype2-demos.
I'm quite sorry for my lazy activity.
Regards,
mpsuzuki
On 06/18/2013 07:03 PM, Yves Daoust wrote:
> Suzuki,
>
> Thank you for the quick answer.
>
> FT_Outline_Decomposeseems to be exactly what I need. Actually, I deal with
> the FXG file format, a close relative to SVG. But I do process the curves
> before saving them.
>
> Now I assume I have to code the generation of the outlines from the given
> string. There are the issues of spacing, alignment, ASCII code to glyph
> number... Is that also built-in ?
>
> If your code shows how to accomplish that, for sure I’d be glad to look at it.
>
> Yves
>
> -----Original Message-----
> From: address@hidden [mailto:address@hidden On Behalf Of suzuki toshiya
> Sent: Tuesday, June 18, 2013 11:28 AM
> To: address@hidden
> Subject: Re: [ft] Text outline rendering
>
> 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 <mailto:address@hidden>
>
> > https://lists.nongnu.org/mailman/listinfo/freetype
>
> >
>
> _______________________________________________
>
> Freetype mailing list
>
> address@hidden <mailto:address@hidden>
>
> https://lists.nongnu.org/mailman/listinfo/freetype
>