mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user