diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:34:29 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:34:29 +1000 |
commit | 7783fc7310e53e8f722356935887f1d44406649d (patch) | |
tree | 00762c9a525e48cc8541cda8b3217a0083a44363 /source/frontend/StarChatBubbleManager.cpp | |
parent | cb76e4e4448446bd69905de19683087d84ae39cb (diff) |
Fix font issues
it's 1:30 AM again :(
Diffstat (limited to 'source/frontend/StarChatBubbleManager.cpp')
-rw-r--r-- | source/frontend/StarChatBubbleManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/frontend/StarChatBubbleManager.cpp b/source/frontend/StarChatBubbleManager.cpp index c72b1a6..ab45faf 100644 --- a/source/frontend/StarChatBubbleManager.cpp +++ b/source/frontend/StarChatBubbleManager.cpp @@ -197,6 +197,7 @@ void ChatBubbleManager::addChatActions(List<ChatAction> chatActions, bool silent // yea I agree m_guiContext->setFontSize(m_fontSize, m_zoom); + m_guiContext->setFontProcessingDirectives(""); m_guiContext->setDefaultFont(); auto result = m_guiContext->determineTextSize(sayAction.text, m_textTemplate); float textWidth = result.width() / m_zoom + m_textPadding[0]; @@ -334,6 +335,8 @@ void ChatBubbleManager::drawBubbleText(Vec2F screenPos, BubbleText const& bubble // use the alpha as a blend value for the text colour as pulled from data. Vec4B const& displayColor = Vec4B(baseColor[0], baseColor[1], baseColor[2], (baseColor[3] * alpha) / 255); + m_guiContext->setDefaultFont(); + m_guiContext->setFontProcessingDirectives(""); m_guiContext->setFontColor(displayColor); m_guiContext->setFontSize(get<1>(bubbleText), m_zoom); |