• Advertisement
Sign in to follow this  

font pointer

This topic is 4364 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement