The FTE CSQC HUD FAQ

Q: How can I change the font/characters that CSQC drawstring() uses?Q: how can I change the font/characters that CSQC drawstring() uses? is that just conchars?
A: (eukara) Nope. there is a global float called drawfont. You change it, but first you have to allocate some fonts. Make a definition for e.g.
var float FONT_HUD;
and inside CSQC_Init:
FONT_HUD = loadfont( "hud", "gfx/otherfont", "16", -1 );
and then before calling drawstring, change drawfont to FONT_HUD. After that, change it back to FONT_DEFAULT

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>