Hi,
Thanks to those who have made suggestions. Converting the font to a TTF
just to read it defies the purpose of them using SVG in the first place;
Ideally i'd like to just use the glyph data in the SVG directly and I
just dont know how to get freetype2 to construct the glyph.
Ive spend a few more hours looking over different docs etc. on the web
and found this:
typedef struct FT_Outline_Funcs_
{
FT_Outline_MoveToFunc move_to;
FT_Outline_LineToFunc line_to;
FT_Outline_ConicToFunc conic_to;
FT_Outline_CubicToFunc cubic_to;
int shift;
FT_Pos delta;
} FT_Outline_Funcs;
Where it looks like I can pass functions that basically do the
conversion. So, in theory, I could write code that converts the path
data in the SVG into something that freetype can make use of.
Unfortunately, I cannot find any examples using this struct that build a
glyph up from a path, or anything for that matter. Can someone point me
in the right direction where I can find a good example? Ive put in a
large number of hours on this and would like it to work. Thanks.
Kind Regards,
Andy 'FishGuy876' Kellett
On 4/6/2010 12:00 PM, Tom Bishop, Wenlin Institute wrote:
On Apr 6, 2010, at 4:34 AM, Andy Kellett wrote:
Hi,
My SVG file already has all the custom defined glyphs that I need in it, all I
need to be able to do is extract the glyph data from the SVG file, and convert
it into something that I can then get freetype to display on the screen. I am
looking mostly for information on how to convert the path data in the SVG, into
something that freetype can understand/interpret. Thanks!
Maybe you could use FontForge to convert the SVG font into a TrueType font. If
that works, it would be easier than writing custom code to convert the SVG.
Tom
文林 Wenlin Institute, Inc. Software for Learning Chinese
E-mail: [email protected] Web: http://www.wenlin.com
Telephone: 1-877-4-WENLIN (1-877-493-6546)
☯
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype