shesek / spark-wallet

⚡️ A minimalistic wallet GUI for c-lightning, accessible over the web or through mobile and desktop apps.
MIT License
344 stars 75 forks source link

fix console font to be monospaced also for box drawing chars #166

Open m-schmoock opened 3 years ago

m-schmoock commented 3 years ago

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

shesek commented 3 years ago

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

m-schmoock commented 3 years ago

@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.

shesek commented 3 years ago

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

m-schmoock commented 3 years ago

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 ;)