summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-03-28 21:39:13 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-03-28 21:39:13 -0400
commitfccd2b7b6f6103e1f4431e3471a1847821780971 (patch)
treed697f95dbaf0f8e5694ffeef4bd8c300d6d37f49
parente702206d6b90325cd83ea044e129951972eaaa24 (diff)
line-editor: Tweak positioning to account for font descent.
-rw-r--r--catbird/line-editor.scm1
1 files changed, 1 insertions, 0 deletions
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))