PDA

View Full Version : glutBitMapCharacter



bubbaJr
02-15-2005, 09:32 AM
I was able to display each of the 7 fonts mentioned with glutBitMapCharacter:

GLUT_BITMAP_8_BY_13
GLUT_BITMAP_9_BY_15
GLUT_BITMAP_TIMES_ROMAN_10
GLUT_BITMAP_TIMES_ROMAN_24
GLUT_BITMAP_HELVETICA_10
GLUT_BITMAP_HELVETICA_12
GLUT_BITMAP_HELVETICA_18

But I need to display characters in a HUGE font, 50 or 60 pixels high. Is there a font I don't know about that I could use with glutBitMapCharacter to get really huge fonts?

Thanks in advance
-m.Y.

dvm
02-15-2005, 04:25 PM
mm nope. You'd either have to use the other glutSomethingICantRememberCharacter function or use the operating system's functions through wgl or glx (for linux). There are tutorials for that at Nehe's.

Tsumuji
02-16-2005, 02:45 AM
Try glScalef(float, float, float);
Maybe can help to increase your fonts. Note that a value of 1.0, is the original size.

bubbaJr
02-16-2005, 02:49 AM
NeHe lesson 13 shows how to do it using Windows. Wanted to stick with glut, but as long as I can get Windows and glut to play nice together... Using the method as shown in Lesson 13, fonts of just about any size and style can be created. Very flexible and solves my problem.