MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / SetTextFont

Method SetTextFont

SDK/src/NDK/Console.cpp:255–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 */
254
255 void Console::SetTextFont(Nz::FontRef font)
256 {
257 NazaraAssert(font && font->IsValid(), "Invalid font");
258
259 m_defaultFont = std::move(font);
260 m_historyDrawer.SetFont(m_defaultFont);
261 m_inputDrawer.SetFont(m_defaultFont);
262
263 Layout();
264 }
265
266 /*!
267 * \brief Shows the console

Callers

nothing calls this directly

Calls 2

SetFontMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected