From 60bbe417ab99b1b511620681ef15e3d37687a7f0 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Tue, 18 Apr 2023 15:05:45 -0700 Subject: [PATCH] Client-Font: actually set con_textsize for the console font as well, because that makes sense to do. --- src/client/font.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/font.qc b/src/client/font.qc index e0b922dd..88818834 100644 --- a/src/client/font.qc +++ b/src/client/font.qc @@ -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)); } }