Browse Source

Fix newline kerning;

--HG--
branch : fix-kerning
bjornbytes 8 years ago
parent
commit
4f855b5ac4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/graphics/Font.cpp

+ 1 - 0
src/modules/graphics/Font.cpp

@@ -434,6 +434,7 @@ std::vector<Font::DrawCommand> Font::generateVertices(const ColoredCodepoints &c
 			// Wrap newline, but do not print it.
 			// Wrap newline, but do not print it.
 			dy += floorf(getHeight() * getLineHeight() + 0.5f);
 			dy += floorf(getHeight() * getLineHeight() + 0.5f);
 			dx = offset.x;
 			dx = offset.x;
+			prevglyph = 0;
 			continue;
 			continue;
 		}
 		}