Box drawing with hypertext[]?

Post Reply
User avatar
AtomicCheese
Member
Posts: 39
Joined: Wed May 28, 2025 17:56
GitHub: IonicCheese
IRC: mrcheese
In-game: IonicCheese

Box drawing with hypertext[]?

by AtomicCheese » Post

I'm trying to display a ASCII art box using some box drawing unicode characters

Code: Select all

┏━━━━━━━━━━━┓
┃ Text here ┃
┗━━━━━━━━━━━┛
It looks fine in chat or in a `field[]` or `textlist[]`, but in hypertext there's quite noticeable gap between any corner and the vertical pipe its connected to

Code: Select all

┏━━━━━━━━━━━┓
(gap)    (gap)
┃ Text here ┃
(gap)    (gap)
┗━━━━━━━━━━━┛
Is there a way to make the connections flush or is this a problem with `hypertext[]`s that i need to live with?
i like small code

cdb_1d446776a66d

sofar
Developer
Posts: 2194
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Box drawing with hypertext[]?

by sofar » Post

Yes, this is a limitation due to the vertical spacing between font lines in the engine. I've ran into the same issue for my insidethebox server, which uses this exact sort of ascii-art bordering for all of its dialog windows.

You can opt to instead draw actual lines, through, and overlay them.

User avatar
AtomicCheese
Member
Posts: 39
Joined: Wed May 28, 2025 17:56
GitHub: IonicCheese
IRC: mrcheese
In-game: IonicCheese

Re: Box drawing with hypertext[]?

by AtomicCheese » Post

sofar wrote:
Fri Mar 27, 2026 19:41
You can opt to instead draw actual lines, through, and overlay them.
Interesting. How does one draw actual lines within a hypertext? (or are you talking about using box[] elements or things like that?)
i like small code

cdb_1d446776a66d

sofar
Developer
Posts: 2194
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Box drawing with hypertext[]?

by sofar » Post

yes, box[] stuff is what I mean.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests