From 4f855b5ac470c6ee7f8582c3e4f7c82911e9613c Mon Sep 17 00:00:00 2001 From: bjornbytes Date: Fri, 19 May 2017 18:11:46 -0600 Subject: [PATCH] Fix newline kerning; --HG-- branch : fix-kerning --- src/modules/graphics/Font.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/graphics/Font.cpp b/src/modules/graphics/Font.cpp index 7efd00246..d9f989c28 100644 --- a/src/modules/graphics/Font.cpp +++ b/src/modules/graphics/Font.cpp @@ -434,6 +434,7 @@ std::vector Font::generateVertices(const ColoredCodepoints &c // Wrap newline, but do not print it. dy += floorf(getHeight() * getLineHeight() + 0.5f); dx = offset.x; + prevglyph = 0; continue; }