1 float stringwidth_oldfont(string text, float handleColors)
3 float i, len, ch, width;
8 for(i = 0; i < len; ++i)
10 if(substring(text, i, 1) == "^")
12 ch = str2chr(text, i+1);
13 if(ch >= '0' && ch <= '9')
24 void CSQC_CheckEngine()
27 registercvar("csqc_flags", "0");
28 csqc_flags = cvar("csqc_flags");
30 if(csqc_flags & CSQC_FLAG_STRINGWIDTH)
32 stringwidth = stringwidth_engine;
33 sbar_font = FONT_USER+1;
35 stringwidth = stringwidth_oldfont;
36 sbar_font = FONT_DEFAULT;
40 vector Sbar_GetFontsize()
42 if(csqc_flags & CSQC_FLAG_STRINGWIDTH)
43 return stov(cvar_string("sbar_fontsize"));