Sdk/Console: Fix SetTextFont

Former-commit-id: de1790fbadff6fec592f875dc9f6b24a3037dc45
This commit is contained in:
Lynix 2016-04-23 22:47:44 +02:00
parent 346e9d7081
commit 823a6f70e6
1 changed files with 6 additions and 0 deletions

View File

@ -186,6 +186,12 @@ namespace Ndk
void Console::SetTextFont(Nz::FontRef font)
{
NazaraAssert(font && font->IsValid(), "Invalid font");
m_defaultFont = std::move(font);
m_historyDrawer.SetFont(m_defaultFont);
m_inputDrawer.SetFont(m_defaultFont);
Layout();
}