Tweak debug font

This commit is contained in:
Kae 2023-07-03 14:48:42 +10:00
parent d018957b09
commit 8ee9c97f54
2 changed files with 5 additions and 3 deletions

View File

@ -14,8 +14,8 @@
"font" : "" "font" : ""
}, },
"debugFont" : "mono-b", "debugFont" : "mono",
"debugFontSize" : 6, "debugFontSize" : 7,
"debugFontDirectives" : "?border=1;0007;0000", "debugFontDirectives" : "?border=1;0007;0000",
// Change planet name to support the new internal string formatting. // Change planet name to support the new internal string formatting.

View File

@ -1261,6 +1261,7 @@ void MainInterface::renderDebug() {
auto assets = Root::singleton().assets(); auto assets = Root::singleton().assets();
m_guiContext->setFontSize(m_config->debugFontSize); m_guiContext->setFontSize(m_config->debugFontSize);
m_guiContext->setFont(m_config->debugFont); m_guiContext->setFont(m_config->debugFont);
m_guiContext->setLineSpacing(0.5f);
m_guiContext->setFontProcessingDirectives(m_config->debugFontDirectives); m_guiContext->setFontProcessingDirectives(m_config->debugFontDirectives);
m_guiContext->setFontColor(Color::Green.toRgba()); m_guiContext->setFontColor(Color::Green.toRgba());
m_guiContext->setFontMode(FontMode::Normal); m_guiContext->setFontMode(FontMode::Normal);
@ -1297,6 +1298,7 @@ void MainInterface::renderDebug() {
} }
m_guiContext->setFontSize(8); m_guiContext->setFontSize(8);
m_guiContext->setDefaultFont(); m_guiContext->setDefaultFont();
m_guiContext->setDefaultLineSpacing();
m_guiContext->setFontColor(Vec4B::filled(255)); m_guiContext->setFontColor(Vec4B::filled(255));
m_guiContext->setFontProcessingDirectives(""); m_guiContext->setFontProcessingDirectives("");