From f0fec34dc9c2dbc86dd424e4963983cbb2ed9b41 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 21 Jun 2023 22:29:40 +1000 Subject: The Fontpocalypse I hate it --- 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 cfb889f..c72b1a6 100644 --- a/source/frontend/StarChatBubbleManager.cpp +++ b/source/frontend/StarChatBubbleManager.cpp @@ -194,7 +194,10 @@ void ChatBubbleManager::addChatActions(List chatActions, bool silent // TODO: Get rid of this stupid fucking bullshit, this is the ugliest // fragilest pointlessest horseshit code in the codebase. It wouldn't // bother me so bad if it weren't so fucking easy to do right. + + // yea I agree m_guiContext->setFontSize(m_fontSize, m_zoom); + m_guiContext->setDefaultFont(); auto result = m_guiContext->determineTextSize(sayAction.text, m_textTemplate); float textWidth = result.width() / m_zoom + m_textPadding[0]; float textHeight = result.height() / m_zoom + m_textPadding[1]; -- cgit v1.2.3