freetype
[Top][All Lists]
Advanced

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

Re: [ft] Getting Vectors from a TTF font


From: Werner LEMBERG
Subject: Re: [ft] Getting Vectors from a TTF font
Date: Mon, 12 Jan 2009 11:37:20 +0100 (CET)

> I'm currently trying to extract vectors from TTF fonts with freetype
> (via outline.points[].x or outline.points[].y).  But the problem is
> that sometimes, those vectors give me ugly chars.  Is there any
> possibilty to extract more vectors from the TTF (to increase
> resolution) or must i use bitmap and get vectors by myself?

Vectors?  Most outlines consist of second-order or third-order Bézier
curves, not straight lines.  You can approximate those curves with
straight lines by applying bisection to the Bézier curve until a
certain threshold is reached.


    Werner




reply via email to

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