neutrino: check for non-existing tuxtxt font

Origin commit data
------------------
Commit: ba8532a9c8
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-24 (Wed, 24 Jan 2018)

Origin message was:
------------------
- neutrino: check for non-existing tuxtxt font
This commit is contained in:
vanhofen
2018-01-24 22:50:24 +01:00
parent 5b9dca1f0e
commit 63b2b84fea

View File

@@ -884,6 +884,11 @@ int CNeutrinoApp::loadSetup(const char * fname)
g_settings.font_file = configfile.getString("font_file", FONTDIR"/neutrino.ttf");
g_settings.ttx_font_file = configfile.getString( "ttx_font_file", FONTDIR"/tuxtxt.ttf");
if (access(g_settings.ttx_font_file, F_OK) != 0)
{
g_settings.ttx_font_file = FONTDIR "/tuxtxt.ttf";
configfile.setUnknownKeyQueryedFlag(true); // force saving config
}
ttx_font_file = g_settings.ttx_font_file.c_str();
g_settings.font_scaling_x = configfile.getInt32("font_scaling_x", 105); //NI