From 7783fc7310e53e8f722356935887f1d44406649d Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 25 Jun 2023 01:34:29 +1000 Subject: Fix font issues it's 1:30 AM again :( --- source/frontend/StarChatBubbleManager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/frontend/StarChatBubbleManager.cpp') 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 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); -- cgit v1.2.3