font pointer

Started by
3 comments, last by josh_w314 18 years, 1 month ago
In C, can I get a pointer to a font that GLUT will accept? I would like the text to be fairly large on the screen, but not pixelated, so I would prefer a stroke font over a bitmap.
Advertisement
What do you mean by pointer? Is it a specified type (*GLFONT)?
And what do you mean by a stroke font? Do you mean to retrieve a true-type font?
A little more detail may be needed...
Projects:> Thacmus - CMS (PHP 5, MySQL)Paused:> dgi> MegaMan X Crossfire
I would like to take one of the font faces that I can use in msword, notepad, whatever, and put it to the screen using this. For that, I need some sort of pointer.
Read the page you linked to ...
Quote:font - one of the pre defined fonts in GLUT, see above.


From GLUT.h:
Quote:/* Stroke font constants (use these in GLUT program). */
#define GLUT_STROKE_ROMAN (&glutStrokeRoman)
#define GLUT_STROKE_MONO_ROMAN (&glutStrokeMonoRoman)
I'm not trying to be a pain here, but what I originally was asking was if there was a way to use a font face OTHER THAN the predefined ones, by getting a pointer to an external font file and passing it for the *font argument.

This topic is closed to new replies.

Advertisement