diff --git a/SDK/src/NDK/Console.cpp b/SDK/src/NDK/Console.cpp index 31586d346..24a5d8df2 100644 --- a/SDK/src/NDK/Console.cpp +++ b/SDK/src/NDK/Console.cpp @@ -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(); }