PDA

View Full Version : QFont::macFontID function always returns 0



ironexmaiden
22nd February 2012, 09:23
I try to render several fonts in a GL window on Mac Lion 10.7.2 by using gl CallLists. Unfortunately the function generateFontDisplayLists is blank on src/opengl/qgl_mac.mm which means that NO glNewLists generated for rendering :( .
The solution i found was to use aglUseFont (
AGLContext ctx,
GLint fontID,
Style face,
GLint size,
GLint first,
GLint count,
GLint base
);

to prepare the gl call list BUT the second parameter must be the QFont::macFontID which i realise it always returns 0;QFont::macFontID function always returns 0