diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-04-01 14:48:59 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-04-01 16:12:55 -0700 |
commit | 4ab901c92e11f47828bc7f5f16d8d2250812d53f (patch) | |
tree | 288dcf758b377c9b8586a9fc4bd7706d3a91e1f4 /help.lua | |
parent | fd2e5acb464c439325455acb63683d4fa316497c (diff) | |
download | lines.love-4ab901c92e11f47828bc7f5f16d8d2250812d53f.tar.gz |
get rid of to_text
I've been misunderstanding what Text objects are. They can render a lot of text with a given line height, word wrap, colors in various places. And I've been creating one for every word :facepalm: Unwinding this will take some time. This is just a first baby step for ad hoc text objects. Turns out I don't need to convert to Text to get something's rendered width, just the Font can do that. Thanks to the LÖVE Discord for educating me: https://discord.com/channels/329400828920070144/330089431379869708/1091535487333826580
Diffstat (limited to 'help.lua')
-rw-r--r-- | help.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/help.lua b/help.lua index 145692f..d91be3c 100644 --- a/help.lua +++ b/help.lua @@ -147,5 +147,5 @@ function current_shape(State, shape) end function bullet_indent() - return App.width(to_text('* ')) + return App.width('* ') end |