Sign in to follow this  
raptorstrike

Problem with spaces in fonts

Recommended Posts

raptorstrike    181
Is there something special you need to do to get bitmap fonts to use spaces? I truncates all the spaces for me and its getting really annoying thanks for any help [grin] O btw here is my little text function that I use void Text(char* Text, int X, int Y) { glRasterPos2i(X,Y); glPushAttrib(GL_LIST_BIT); glListBase(base - 32); glCallLists((int)strlen(Text), GL_UNSIGNED_BYTE, Text); glPopAttrib(); }; It looks like it should work but maybe im setting one of the text flags wrong in creation...

Share this post


Link to post
Share on other sites
kburkhart84    3187
I use the same idea for text. I recommend creating all 256 characters instead of 96 like in NEHE's tutorials. Then you don't have to set the list base back 32, and the list should be correctly included for the "space" character.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this