Truetype

is it possible to use TrueType fonts with SDL for windows?

if it is possible what should i download (freetype something?)

/andreas

Assuming you’re using mingw32. If not it might be more complicated, but I got this working just recently with Sams help. All you need to do is get the precompiled freetype libraries from:

www.devolution.com/~slouken/SDL/Xmingw32/

I just threw mine in mingw32s lib folder. You’ll still need to download freetype 1.1 (www.freetype.org) (as far as I know 1.2 does’nt work). You only need the headers from it though. Compile the ttflib demo from the sdl demos to see if it worked.

-Pheonix Kokido: members.xoom.com/kokido

Andreas Karlsson wrote:

is it possible to use TrueType fonts with SDL for windows?

if it is possible what should i download (freetype something?)

/andreas

-Phoenix Kokido______________________________________________________
Get your free web-based email at http://www.xoom.com
Birthday? Anniversary? Send FREE animated greeting
cards for any occassion at http://greetings.xoom.com

Pheonix Kokido wrote:

Assuming you’re using mingw32. If not it might be more complicated, but I got this working just recently with Sams help. All you need to do is get the precompiled freetype libraries from:

www.devolution.com/~slouken/SDL/Xmingw32/

I just threw mine in mingw32s lib folder. You’ll still need to download freetype 1.1 (www.freetype.org) (as far as I know 1.2 does’nt work). You only need the headers from it though. Compile the ttflib demo from the sdl demos to see if it worked.

-Pheonix Kokido: members.xoom.com/kokido

Andreas Karlsson wrote:

is it possible to use TrueType fonts with SDL for windows?

if it is possible what should i download (freetype something?)

/andreas

-Phoenix Kokido

Hi,

if you grab freetype-1.1-i686-pc-mingw32.tgz from the link above, you?ll get
all the header files you need. just include freetype.h in your sourcefiles.

You will have to pass the path where you extracted the archive to your
compiler and tell your linker to link againt libttf.a

when compiling
"-I /freetype-1.1-i686-pc-mingw32"

when linking
" /freetype-1.1-i686-pc-mingw32/libttf.a"

regards,–
Karsten-O. Laux
klaux at student.uni-kl.de
http://www.rhrk.uni-kl.de/~klaux
UIN 21614933 (Bert)

Hi,

if you grab freetype-1.1-i686-pc-mingw32.tgz from the link above, you?ll get
all the header files you need. just include freetype.h in your sourcefiles.

Oops, yeah freetype.h is probably important. :slight_smile:

Thanks Karsten,

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/