spark-wallet icon indicating copy to clipboard operation
spark-wallet copied to clipboard

fix console font to be monospaced also for box drawing chars

Open m-schmoock opened this issue 3 years ago • 4 comments

The c-lightning summary plugin ( https://github.com/lightningd/plugins/tree/master/summary ) prints box drawing unicode characters. Turns out the current UI font is not able to monospace them correctly. See attached screenshot, the bars should be aligned in the middle.

https://en.wikipedia.org/wiki/Box_Drawing_(Unicode_block)

image

m-schmoock avatar Dec 14 '20 21:12 m-schmoock

Sounds acceptable to me. Have you tried running it with a monospace font? does it looks good?

shesek avatar Dec 16 '20 03:12 shesek

@shesek I tested it only on my nodes CLI and yes there it looks good. From the screenshot above you can see that the app already uses a fixed font for that activity, BUT the box drawing chars are not fixed for this font. Which some fixed fonts have, as the box chars are UTF8 stuff.

m-schmoock avatar Dec 18 '20 10:12 m-schmoock

@m-schmoock Any idea which font would be suitable here?

shesek avatar Jan 19 '21 18:01 shesek

A small research gave me this: https://stackoverflow.com/a/52712484/884474 Try using Lucida Sans Typewriter. If that doesn't work, try to ship it with https://madmalik.github.io/mononoki or https://github.com/adobe-fonts/source-code-pro . Not sure if embedding a special font in the app is an option. So lets hope Lucida Sans Typewriter does the job ;)

m-schmoock avatar Jan 20 '21 08:01 m-schmoock