View Full Version : fonts in freeglut

01-17-2012, 12:45 PM
I use this function to draw my text.

void glutPrint(float x, float y, LPVOID font, char* text, float red, float green, float blue)
if(!text || !strlen(text)) return;
bool blending = false;
if(glIsEnabled(GL_BLEND)) blending = true;
while (*text) {
glutBitmapCharacter(font, *text);
if(!blending) glDisable(GL_BLEND);
what can I do to make my text bigger? Are their any other fonts than :
GLUT_BITMAP_8_BY_13 - A variable-width font with every character fitting in a rectangle of 13 pixels high by at most 8 pixels wide.
GLUT_BITMAP_9_BY_15 - A variable-width font with every character fitting in a rectangle of 15 pixels high by at most 9 pixels wide.
GLUT_BITMAP_TIMES_ROMAN_10 - A 10-point variable-width Times Roman font.
GLUT_BITMAP_TIMES_ROMAN_24 - A 24-point variable-width Times Roman font.
GLUT_BITMAP_HELVETICA_10 - A 10-point variable-width Helvetica font.
GLUT_BITMAP_HELVETICA_12 - A 12-point variable-width Helvetica font.
GLUT_BITMAP_HELVETICA_18 - A 18-point variable-width Helvetica font.

please suggest me other ideas too

01-17-2012, 03:25 PM
Vector font FTGL. WGL.

02-28-2012, 01:41 AM
Could someone help me how to draw a text ex : "HELLO" in openGL window. Iam using Tao framework with Visual Basic 2008. Please help me.
Thank you.