[client] imgui: make UI font and size configurable

This commit is contained in:
Quantum
2021-07-23 00:22:04 -04:00
committed by Geoffrey McRae
parent 5d053128ac
commit 436986d182
4 changed files with 20 additions and 3 deletions

View File

@@ -262,6 +262,20 @@ static struct Option options[] =
.validator = optRotateValidate,
.value.x_int = 0,
},
{
.module = "win",
.name = "uiFont",
.description = "The font to use when rendering on-screen UI",
.type = OPTION_TYPE_STRING,
.value.x_string = "DejaVu Sans Mono",
},
{
.module = "win",
.name = "uiSize",
.description = "The font size to use when rendering on-screen UI",
.type = OPTION_TYPE_INT,
.value.x_int = 14
},
// input options
{
@@ -526,6 +540,8 @@ bool config_load(int argc, char * argv[])
g_params.autoScreensaver = option_get_bool ("win", "autoScreensaver");
g_params.showAlerts = option_get_bool ("win", "alerts" );
g_params.quickSplash = option_get_bool ("win", "quickSplash" );
g_params.uiFont = option_get_string("win" , "uiFont" );
g_params.uiSize = option_get_int ("win" , "uiSize" );
if (g_params.noScreensaver && g_params.autoScreensaver)
{