Client-Font: actually set con_textsize for the console font as well, because that makes sense to do.

This commit is contained in:
Marco Cawthorne 2023-04-18 15:05:45 -07:00
parent e1b024e345
commit 60bbe417ab
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 1 deletions

View File

@ -95,7 +95,9 @@ Font_Load(string strFile, font_s &fntNew)
string r = ftos(fntNew.vecColor[0]);
string g = ftos(fntNew.vecColor[0]);
string b = ftos(fntNew.vecColor[0]);
cvar_set("gl_font", strcat(strFontPath, "?col=", r, ",", g, ",", b));
string size = ftos((float)fntNew.iScaleY);
cvar_set("con_textfont", strcat(strFontPath, "?col=", r, ",", g, ",", b));
cvar_set("con_textsize", strcat("-", size));
}
}