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