Fix LabelWidgets randomly being shadowed
This commit is contained in:
parent
49147c8be5
commit
572291047f
@ -2,7 +2,7 @@
|
||||
"paneLayout" : {
|
||||
"voiceLabel" : {
|
||||
"type" : "label",
|
||||
"position" : [119, 187],
|
||||
"position" : [119, 186],
|
||||
"hAnchor" : "mid",
|
||||
"value" : "VOICE"
|
||||
},
|
||||
|
@ -274,6 +274,7 @@ void CanvasWidget::renderText(Vec2F const& renderingOffset, String const& s, Tex
|
||||
|
||||
context.setDefaultLineSpacing();
|
||||
context.setDefaultFont();
|
||||
context.setFontMode(FontMode::Normal);
|
||||
context.setFontProcessingDirectives("");
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,8 @@ LabelWidget::LabelWidget(String text,
|
||||
m_hAnchor(hAnchor),
|
||||
m_vAnchor(vAnchor),
|
||||
m_wrapWidth(move(wrapWidth)),
|
||||
m_lineSpacing(move(lineSpacing)) {
|
||||
m_lineSpacing(move(lineSpacing)),
|
||||
m_fontMode(FontMode::Normal) {
|
||||
auto assets = Root::singleton().assets();
|
||||
auto fontConfig = assets->json("/interface.config:font");
|
||||
m_fontSize = fontConfig.getInt("baseSize");
|
||||
|
Loading…
Reference in New Issue
Block a user