[SDL] embedded TTF fonts into an application

Peter Mackay mackay.pete+sdl at gmail.com
Fri Dec 12 00:16:18 PST 2008


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  <necronology at cox.net>:
> 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 <leisner at rochester.rr.com> 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
>



More information about the SDL mailing list