freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] newbe to freetype


From: Antoine Leca
Subject: Re: [Freetype] newbe to freetype
Date: Wed, 10 Nov 2004 12:07:03 +0100

> but I don't know how to save them to another truetype
> font file.  My questions:
>
> 1> Will freetype the right one for me to use?

No.

> If so, what the API should I call?

WriteFile (or the MFC wrapper to it). Then probably AddFontResource.


> 2>Does MFC (or standard C/C++) program provides any
> function for me to call so that I can output the file
> to truetype format?

<OFF-TOPIC>
Directly: no.

TrueType file are just that, files. So you should write the (whole) TrueType
file to disk. Look at GetFontData to learn how you can read all the parts of
the original file. Then you built the target font directory (look at the
specifications) with your modified datas, and you write the directory then
all the tables into a new file; then you can use AddFontResource to make the
newly created font available to your application.

Please test your application on NT/2000/XP with a restricted user, not an
administrator-like; it may change things.
</OFF-TOPIC>

All of this is completely unrelated to FreeType.
FreeType is in charge of rendering, not building new fonts.


Antoine




reply via email to

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