diff options
-rw-r--r-- | chickadee/render/font.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/render/font.scm b/chickadee/render/font.scm index f63450b..3654a13 100644 --- a/chickadee/render/font.scm +++ b/chickadee/render/font.scm @@ -83,7 +83,7 @@ (if (< i (string-length text)) (let ((char (or (font-ref font (string-ref text i)) (font-ref font #\?)))) - (loop (+ width (font-char-advance char)) + (loop (+ width (vec2-x (font-char-advance char))) (+ i 1))) width))) |