Archived

This topic is now archived and is closed to further replies.

Inferno

Question about glPrint

Recommended Posts

Using essientially the same code for the font as the code in Lesson 32, I've been trying to figure out how to make the font size bigger, how would i go about doing this? [edited by - Inferno on October 10, 2003 11:51:47 PM]

Share this post


Link to post
Share on other sites
glScalef(sizeX, sizeY, 1.0f);

1.0 for sizeX and sizeY is normal size, 2.0 is double size ...

Share this post


Link to post
Share on other sites
quote:
Original post by PM
glScalef(sizeX, sizeY, 1.0f);

1.0 for sizeX and sizeY is normal size, 2.0 is double size ...


sweet thanks, I thought there was a Scale function.

Share this post


Link to post
Share on other sites
Be aware that normal vectors are not automatically rescaled when using glScale. This will affect the lighting intensity on the text. See this article, and search for the section entitled ''Improperly Scaling Normals for Lighting''.

Share this post


Link to post
Share on other sites
thanks, I haven''t implemented my lighting setup yet. That''s going to be my job tomorrow but I probably would have run into the problem you mentioned.

Share this post


Link to post
Share on other sites