diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-29 07:05:01 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-29 07:05:01 +1000 |
commit | 1e213aac5fe47107de4df618ed8674193210f2fc (patch) | |
tree | 759933953fab47a529a27af03689a89ad9af9ed6 /source/rendering/StarTextPainter.cpp | |
parent | 0b479ae1b98f7b895263b69a202874782b576999 (diff) |
Decimal zoom with lerp
Diffstat (limited to 'source/rendering/StarTextPainter.cpp')
-rw-r--r-- | source/rendering/StarTextPainter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/rendering/StarTextPainter.cpp b/source/rendering/StarTextPainter.cpp index b7526bb..631000e 100644 --- a/source/rendering/StarTextPainter.cpp +++ b/source/rendering/StarTextPainter.cpp @@ -530,6 +530,7 @@ RectF TextPainter::doRenderLine(StringView text, TextPositioning const& position return true; }; + m_fontTextureGroup.switchFont(m_renderSettings.font); Text::processText(text, textCallback, commandsCallback); return bounds; @@ -538,7 +539,7 @@ RectF TextPainter::doRenderLine(StringView text, TextPositioning const& position RectF TextPainter::doRenderGlyph(String::Char c, TextPositioning const& position, bool reallyRender) { if (m_nonRenderedCharacters.find(String(c)) != NPos) return RectF(); - m_fontTextureGroup.switchFont(m_renderSettings.font); + int width = glyphWidth(c); // Offset left by width if right anchored. float hOffset = 0; |