Advertisement

Anyone knoiw how to change the font size of glf.glfLoadFont

Started by April 16, 2002 05:38 AM
1 comment, last by jonathan_ingram 22 years, 10 months ago
I''ve looked at several pages on the web and the glf demo on the gl4java site, but does anyone know how it is possible to change the actual size of the font? Is it actually possible? When i''m drawing my text i currently have: gl.glPushMatrix(); gl.glColor3f(0.0f,0.0f,0.0f); glf.glfDraw3DSolidStringF(fTimesNew1,"Event"); gl.glTranslatef(0.0f,-1.4f,0.0f); glf.glfDraw3DSolidStringF(fTimesNew1,"Age"); gl.glTranslatef(0.0f,-1.4f,0.0f); glf.glfDraw3DSolidStringF(fTimesNew1,"Date"); gl.glTranslatef(0.0f,-1.4f,0.0f); glf.glfDraw3DSolidStringF(fTimesNew1,"Parish"); gl.glTranslatef(0.0f,-1.4f,0.0f); gl.glPopMatrix(); Is it possible to set the font, any ideas, currently it displays too big. (Btw this is the last hurdle in my project). Thanks again, Mark.
Regards, Mark.

I''m pretty new to OpenGL so this answer may be worthless, but couldn''t you use the glScale functions to alter the size of your fonts?
Advertisement
Never used Java, but if you''re filling a LOGFONT struct, change its Height member or however it''s called to something smaller.
---visit #directxdev on afternet <- not just for directx, despite the name

This topic is closed to new replies.

Advertisement