OGL中,关于字体大小的问题
在OGL窗口中显示3D文字时,在设置字体大小时出了问题,我的做法是这样的:
先定义这么一个结构体:LOGFONT logfont;
logfont.lfHeight=-10;
logfont.lfWidth=0;
...............
再选入字体:
hFont=CreateFontIndirect(&logfont);
SelectObject(hdc,hFont);
然后:
int nFontlist=glGenLists(128);
wglUseFontOutlines(hdc,0,128,nFontlist,0.0f,0.8f,WGL_FONT_POLYGONS,agmf);
这里,得到的3D字体能够显示了,但一个个大到无敌,不知道要怎么设置才好了.