aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interactive/text.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interactive/text.lisp')
-rw-r--r--src/interactive/text.lisp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interactive/text.lisp b/src/interactive/text.lisp
index caba48e..a7c0582 100644
--- a/src/interactive/text.lisp
+++ b/src/interactive/text.lisp
@@ -56,7 +56,12 @@
(setf vao vao%
elem-count count%))
(setf newlines (count #\newline content))
- (hq:with-plist ((l :l) (r :r)) (cl-fond:compute-extent (font-object font) content)
+ (let* ((extent
+ (cl-fond:compute-extent (font-object font) content))
+ (l
+ (getf extent :l))
+ (r
+ (getf extent :r)))
(setf base-width (- r l)
base-height (* (cl-fond:text-height (font-object font))
(1+ newlines))))))