- neutrinofonts: allow monospaced font for shellwindow widget

Font is initialized at runtime and uses FONTDIR_VAR "/shell.ttf" or FONTDIR "/shell.ttf"

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-01-27 14:57:31 +01:00
committed by Thilo Graf
parent fe6b7b588f
commit 97d349872a
5 changed files with 34 additions and 1 deletions

View File

@@ -118,7 +118,8 @@ void CShellWindow::exec()
return;
}
Font *font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO];
CNeutrinoFonts::getInstance()->SetupShellFont();
Font *font = g_ShellFont ? g_ShellFont : g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO];
int h_shell = frameBuffer->getScreenHeight();
int w_shell = frameBuffer->getScreenWidth();
unsigned int lines_max = h_shell / font->getHeight();