neutrinofonts: allow monospaced font for shellwindow widget

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


Origin commit data
------------------
Branch: ni/coolstream
Commit: 721300f60b
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-27 (Sat, 27 Jan 2018)

Origin message was:
------------------
- neutrinofonts: allow monospaced font for shellwindow widget

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


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-01-27 14:57:31 +01:00
parent 3a481b6c91
commit cf7f13121e
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();