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

summaryrefslogtreecommitdiff
path: root/source/windowing/StarCanvasWidget.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-18 18:32:29 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-18 18:32:29 +1000
commit572291047fe2713a50bd4c584fd91b758c60337d (patch)
tree8b2655e6e59134601b29a7fa5f06c6ccddfa38cd /source/windowing/StarCanvasWidget.cpp
parent49147c8be51cd71e34a862615e18955bd3abeca5 (diff)
Fix LabelWidgets randomly being shadowed
Diffstat (limited to 'source/windowing/StarCanvasWidget.cpp')
-rw-r--r--source/windowing/StarCanvasWidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/windowing/StarCanvasWidget.cpp b/source/windowing/StarCanvasWidget.cpp
index a0eeb7d..0c7ea82 100644
--- a/source/windowing/StarCanvasWidget.cpp
+++ b/source/windowing/StarCanvasWidget.cpp
@@ -274,6 +274,7 @@ void CanvasWidget::renderText(Vec2F const& renderingOffset, String const& s, Tex
context.setDefaultLineSpacing();
context.setDefaultFont();
+ context.setFontMode(FontMode::Normal);
context.setFontProcessingDirectives("");
}