From fccd2b7b6f6103e1f4431e3471a1847821780971 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 28 Mar 2023 21:39:13 -0400 Subject: line-editor: Tweak positioning to account for font descent. --- catbird/line-editor.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/catbird/line-editor.scm b/catbird/line-editor.scm index 53aa4dd..d6aac0a 100644 --- a/catbird/line-editor.scm +++ b/catbird/line-editor.scm @@ -113,6 +113,7 @@ (rectangle (vec2 0.0 0.0) (font-line-width (font editor) "_") (font-line-height (font editor))))))) + (set! (origin-y editor) (font-descent (font editor))) (discard-next-char editor) (update-visual editor)) -- cgit v1.2.3