----- Original Message -----
Sent: Saturday, July 28, 2001 10:12 AM
Subject: Re: [Freetype] Vector-only output request
HI Laurent,
Thanks for the fast response.
I looked at the FT_Outline_Decompose function
already. I'm no expert on using this library, but I still see no way to
get just vectors. It looks like you get line segments and whatever bezier
curves or whatever as output, with no indication as to which parts of the
outline are holes.
What I (and I'm sure others) thought would be
useful is to have a way of getting ONLY line segments (no curves as they would
be segmented already using some specified criteria, like a chord angle or
minimum segment length). This way, it would simplify conversion to other
format polyline types like those used in CAD/CAM applications where you might
have an outside outline and the hole outlines--and have the added bonus in that
even if a new font type comes out that supports some other obscure arc type, it
would be handled transparently without the need of code using the FreeType
library to understand the format.
Regards,
Adrian
----- Original Message -----
Sent: Saturday, July 28, 2001 9:50
AM
Subject: Re: [Freetype] Vector-only
output request
Well it has... Ouuuppsss look at the FT_Outline_Decompose function... I developed such thing
that works with the libart library and my own rendering functions as I
only use 32 bits images... And it works great, however the libart renderer
gives me some troubles with overflows. I'm currently rewriting that part (I
should to :-)).
Laurent
----- Original Message -----
Sent: Saturday, July 28, 2001 6:25
PM
Subject: [Freetype] Vector-only output
request
Hello,
First of all, I am new to FreeType but am
grateful that folks such as yourselves are providing such useful software to
the development community in such a selfless way--many kudos!
I have an application in mind for the
library. Unfortunately, it appears that the FreeType library is not
suited for my purposes due to the lack of any ability to output only
vectors. You see, I have the need to convert a text string to
outlines, outputting only vectors (lines)--curves already converted to line
segments and 'holes' in glyphs separated from the actual glyph
outlines. I really have little need for getting bitmap information--I
need vectors that can be taken and converted to a format compatible with
polyline formats used by different applications.
It would really be nice if FreeType supported a
function such as Glyph_to_vectors(), that allows for specifying a 'chord
angle' or similar for specifying the granularity of which to break up
complicated curves. I would think that this would be useful not only
to myself, but to many interested in converting glyph strings to primitive,
simple-to-use outlines.
Does anyone know of any other tools (or
FreeType add-ins perhaps) that could accomplish this?
Regards,
Adrian
|