Talk:Programming OpenGL in Linux: Programming Animations with GLX and Xlib
Jump to navigation
Jump to search
Reguarding the section entitled: FIND A FONT
Everytime I use this eggcellent example, the font stuff is broken.
Rather than having code in a for loop just to hope for fonts, which, in my case are not there, I have to substitute in the SIMPLEST of code below:
font_struct = XLoadQueryFont(dpy, "10x20");
if(font_struct != NULL)
{
glXUseXFont(font_struct->fid, 32, 192, 32);
}
Wiki made it a oneliner, whatever, if it works it should still work.