Is there a way to determine rendered text height, knowing that said text may contain the tall rendering mode option ? I could search for the presence of "\^t" if I can find a way to express the escaped version of that.
-- always prints 6 local text = "\^thello" local h = 6 if sub(text,1,3) == "\^t" then h = 12 end print(h) |
P#141328 2024-02-09 14:29
1
yes! you can call print
off-screen and use the maxx,maxy values that it returns: https://www.lexaloffle.com/dl/docs/pico-8_manual.html#PRINT
(version 0.2.5d added the second return value)
P#141341 2024-02-09 18:37
Thanks @kozm0naut and @merwok! 2 solutions for 1. It must be Friday. :p
P#141349 2024-02-09 21:19 ( Edited 2024-02-09 21:19)
[Please log in to post a comment]