How would I embeded truetype fonts into my application and then use
SDL_TTF (instead of using SDL_TTF on “files”)
marty
How would I embeded truetype fonts into my application and then use
SDL_TTF (instead of using SDL_TTF on “files”)
marty
How would I embeded truetype fonts into my application and then use
SDL_TTF (instead of using SDL_TTF on “files”)
You would append your font archive to the end of your executable, open
it for reading, and use TTF_OpenFontRW()
See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
It depends but you can easily add “resources” or .rc files. A quick research on that should show the way. You could do better of worse than this. What is your primary concern?
---- Marty Leisner wrote:=============
How would I embeded truetype fonts into my application and then use
SDL_TTF (instead of using SDL_TTF on “files”)
marty
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Another (cross-platform) alternative is to use a program like bin2c to
make a C array from the file, include that in your source code, then
point TTF_OpenFontRW to it using SDL_RWFromConstMem (if I remember
correctly).
Peter
2008/12/12 :> It depends but you can easily add “resources” or .rc files. A quick research on that should show the way. You could do better of worse than this. What is your primary concern?
---- Marty Leisner wrote:
=============
How would I embeded truetype fonts into my application and then use
SDL_TTF (instead of using SDL_TTF on “files”)marty
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org