[SDL] Can I output english words without using SDL_ttf

cocobear cocobear.cn at gmail.com
Sun Oct 21 23:38:07 PDT 2007


于 Sun, 21 Oct 2007 13:43:36 -0400
Jonathan Dearborn <grimfang4 at hotmail.com> 写道:

> Hey,
>  
> I have a C++ class that handles bitmap fonts at my website:
> http://pubpages.unh.edu/~jmb97 on the SDL page. 
> If you use C++, NFont makes it pretty simple to do this stuff.  Just
> #include NFont.h in your code.  It's based on SFont, in case that
> helps you know what to expect. ex.
> NFont font(screen, SDL_LoadBMP("fontFile.bmp"));
> font.draw(30, 50, "Here's five: %d", 5);
>  
> Jonny D
> 


I use C now, but I will use C++ in my next work. So it's very useful to
me. Thanks.



> 
> 
> > Date: Sun, 21 Oct 2007 18:54:47 +0800> To: sdl at lists.libsdl.org>
> > From: cocobear.cn at gmail.com> Subject: [SDL] Can I output english
> > words without using SDL_ttf> > > I just want to put some words, but
> > I don't want to use SDL_ttf.> > > > Regards!> > /*> *Welcome to
> > cocobear's home!> *http://cocobear.cn> */>
> > _______________________________________________> SDL mailing list>
> > SDL at lists.libsdl.org>
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> _________________________________________________________________
> Climb to the top of the charts!  Play Star Shuffle:  the word
> scramble challenge with star power.
> http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct


Regards!

/*
 *Welcome to cocobear's home!
 *http://cocobear.cn
 */


More information about the SDL mailing list