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

summaryrefslogtreecommitdiff
path: root/source/windowing/StarLabelWidget.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-21 10:40:53 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-21 10:40:53 +1000
commit0ec3000536fae16ede8aa85ad22aba4d9781cc9e (patch)
tree939aeec379253d842bd6ba58935a04a79dcfd4d2 /source/windowing/StarLabelWidget.cpp
parentbd783d319557b41b5865d51f306a74abbf7af18c (diff)
processing directives for text box widgets
few other misc things also fixed SDL audio on newer SDL vers
Diffstat (limited to 'source/windowing/StarLabelWidget.cpp')
-rw-r--r--source/windowing/StarLabelWidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/windowing/StarLabelWidget.cpp b/source/windowing/StarLabelWidget.cpp
index f9a5110..5159704 100644
--- a/source/windowing/StarLabelWidget.cpp
+++ b/source/windowing/StarLabelWidget.cpp
@@ -16,7 +16,9 @@ LabelWidget::LabelWidget(String text,
m_wrapWidth(move(wrapWidth)),
m_lineSpacing(move(lineSpacing)) {
auto assets = Root::singleton().assets();
- m_fontSize = assets->json("/interface.config:font").getInt("baseSize");
+ auto fontConfig = assets->json("/interface.config:font");
+ m_fontSize = fontConfig.getInt("baseSize");
+ m_processingDirectives = fontConfig.getString("defaultDirectives");
setText(move(text));
}