In XWIndows how do I set the font size to draw with? There's probably something simple I'm missing on this.
I know you can get a font's size with something like this:
But how can I tell it I want to use font size 18 when I output text?Code:int FontSize(Display Disp, char *FontName) { XFontStruct *FontInfo; int Height; FontInfo = XLoadQueryFont(Disp, "fixed"); Height = FontInfo.ascent + FontInfo.descent XFreeFont(Disp, FontInfo); return Height; }