|
From: | Frederic Kwiatkowski |
Subject: | Re: [ft] Getting Vectors from a TTF font |
Date: | Mon, 12 Jan 2009 11:57:42 +0100 |
Vectors? Most outlines consist of second-order or third-order Bézier
> 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?
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
[Prev in Thread] | Current Thread | [Next in Thread] |