Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/opensb/interface.config.patch6
-rw-r--r--source/frontend/StarMainInterface.cpp2
2 files changed, 5 insertions, 3 deletions
diff --git a/assets/opensb/interface.config.patch b/assets/opensb/interface.config.patch
index dd764bb..5df1eb5 100644
--- a/assets/opensb/interface.config.patch
+++ b/assets/opensb/interface.config.patch
@@ -13,9 +13,9 @@
"cursorTooltip" : {
"font" : ""
},
-
- "debugFont" : "mono-b",
- "debugFontSize" : 6,
+
+ "debugFont" : "mono",
+ "debugFontSize" : 7,
"debugFontDirectives" : "?border=1;0007;0000",
// Change planet name to support the new internal string formatting.
diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp
index 37ff2e3..83eb1b4 100644
--- a/source/frontend/StarMainInterface.cpp
+++ b/source/frontend/StarMainInterface.cpp
@@ -1261,6 +1261,7 @@ void MainInterface::renderDebug() {
auto assets = Root::singleton().assets();
m_guiContext->setFontSize(m_config->debugFontSize);
m_guiContext->setFont(m_config->debugFont);
+ m_guiContext->setLineSpacing(0.5f);
m_guiContext->setFontProcessingDirectives(m_config->debugFontDirectives);
m_guiContext->setFontColor(Color::Green.toRgba());
m_guiContext->setFontMode(FontMode::Normal);
@@ -1297,6 +1298,7 @@ void MainInterface::renderDebug() {
}
m_guiContext->setFontSize(8);
m_guiContext->setDefaultFont();
+ m_guiContext->setDefaultLineSpacing();
m_guiContext->setFontColor(Vec4B::filled(255));
m_guiContext->setFontProcessingDirectives("");