diff --git a/Framework/Graphics/SpriteFont.cs b/Framework/Graphics/SpriteFont.cs index 2bcb34e..da366a3 100644 --- a/Framework/Graphics/SpriteFont.cs +++ b/Framework/Graphics/SpriteFont.cs @@ -289,7 +289,7 @@ public void WrapText(ReadOnlySpan text, float maxLineWidth, List<(int Star if (lineWidth > 0 && lineWidth + nextWordWidth > maxLineWidth) { writeLinesTo.Add((start, i - start)); - start = i; + start = i + 1; lineWidth = 0; } @@ -413,9 +413,6 @@ public void RenderText(Batcher batch, ReadOnlySpan text, Vector2 position, public void RenderText(Batcher batch, ReadOnlySpan text, Vector2 position, Vector2 justify, Color color) { - // TODO: - // I feel like the vertical alignment is slightly off, but not sure how. - var at = position + new Vector2(0, Ascent); var last = 0;