diff --git a/src/xrUICore/FontManager/FontManager.cpp b/src/xrUICore/FontManager/FontManager.cpp index e9b8dbeeb04..2c6f53b0625 100644 --- a/src/xrUICore/FontManager/FontManager.cpp +++ b/src/xrUICore/FontManager/FontManager.cpp @@ -37,7 +37,6 @@ void CFontManager::InitializeFonts() InitializeFont(pFontGraffiti50Russian, "ui_font_graff_50"); InitializeFont(pFontLetterica25, "ui_font_letter_25"); InitializeFont(pFontStat, "stat_font", CGameFont::fsDeviceIndependent); - pFontStat->SetInterval(0.75f, 1.0f); } LPCSTR CFontManager::GetFontTexName(LPCSTR section) @@ -78,6 +77,17 @@ void CFontManager::InitializeFont(CGameFont*& F, LPCSTR section, u32 flags) #ifdef DEBUG F->m_font_name = section; #endif + + if (pSettings->line_exist(section, "size")) + { + const float sz = pSettings->r_float(section, "size"); + if (flags & CGameFont::fsDeviceIndependent) + F->SetHeightI(sz); + else + F->SetHeight(sz); + } + if (pSettings->line_exist(section, "interval")) + F->SetInterval(pSettings->r_fvector2(section, "interval")); } CFontManager::~CFontManager()