monaspace icon indicating copy to clipboard operation
monaspace copied to clipboard

Columns don't align properly under all circumstances

Open Wuerfel21 opened this issue 2 years ago • 5 comments

Font does not always render properly for me. Seems to depend on family/size/settings used, but is very obnoxious. This is with Radon at size 14, weight 600: image

Now a normal monospace font (Hack): image

It also happens on the demo website (all default settings): image

It doesn't happen for other users I talked to, so it may be an OS issue or something. I'm using VSCodium 1.84.0 on Kubuntu 23.04

Wuerfel21 avatar Nov 10 '23 13:11 Wuerfel21

There are also alignment issues with box characters, for example with this usual test:

  ╔══╦══╗  ┌──┬──┐  ╭──┬──╮  ╭──┬──╮  ┏━━┳━━┓  ┎┒┏┑   ╷  ╻ ┏┯┓ ┌┰┐    ▊ ╱╲╱╲╳╳╳
  ║┌─╨─┐║  │╔═╧═╗│  │╒═╪═╕│  │╓─╁─╖│  ┃┌─╂─┐┃  ┗╃╄┙  ╶┼╴╺╋╸┠┼┨ ┝╋┥    ▋ ╲╱╲╱╳╳╳
  ║│╲ ╱│║  │║   ║│  ││ │ ││  │║ ┃ ║│  ┃│ ╿ │┃  ┍╅╆┓   ╵  ╹ ┗┷┛ └┸┘    ▌ ╱╲╱╲╳╳╳
  ╠╡ ╳ ╞╣  ├╢   ╟┤  ├┼─┼─┼┤  ├╫─╂─╫┤  ┣┿╾┼╼┿┫  ┕┛┖┚     ┌┄┄┐ ╎ ┏┅┅┓ ┋ ▍ ╲╱╲╱╳╳╳
  ║│╱ ╲│║  │║   ║│  ││ │ ││  │║ ┃ ║│  ┃│ ╽ │┃  ░░▒▒▓▓██ ┊  ┆ ╎ ╏  ┇ ┋ ▎
  ║└─╥─┘║  │╚═╤═╝│  │╘═╪═╛│  │╙─╀─╜│  ┃└─╂─┘┃  ░░▒▒▓▓██ ┊  ┆ ╎ ╏  ┇ ┋ ▏
  ╚══╩══╝  └──┴──┘  ╰──┴──╯  ╰──┴──╯  ┗━━┻━━┛           └╌╌┘ ╎ ┗╍╍┛ ┋  ▁▂▃▄▅▆▇█

Tested in Emacs, no problem with other monospace fonts.

galdor avatar Nov 10 '23 13:11 galdor

As far as I'm aware, Monaspace doesn't ship box drawing characters, so using them would be forcing the OS's type rasterizer to fall back to "some other font" that contains the needed codepoints, and that other font doesn't share the same metrics as Monaspace.

Doublechecking but I'm pretty sure this is beyond our control short of shipping a bunch of line drawing characters ourselves that fit into our metrics.

idan avatar Nov 11 '23 00:11 idan

It appears to work properly when using the non-variable version

Wuerfel21 avatar Nov 11 '23 01:11 Wuerfel21

Nerd Fonts patches box drawing glyph set in ;-D

image

For the box drawing glyphs Monaspace would need to drop its line gap, which other persons found disturbing (Issue 21, 37)

Finii avatar Nov 11 '23 05:11 Finii

As far as I'm aware, Monaspace doesn't ship box drawing characters, so using them would be forcing the OS's type rasterizer to fall back to "some other font" that contains the needed codepoints, and that other font doesn't share the same metrics as Monaspace.

Doublechecking but I'm pretty sure this is beyond our control short of shipping a bunch of line drawing characters ourselves that fit into our metrics.

Ah you are 100% right, my bad.

galdor avatar Nov 11 '23 14:11 galdor

We've added box drawing figures in 1.2! Which means that those glyphs won't fall back to other fonts and this should no longer be an issue.

Thank you for flying Monaspace Air!

idan avatar Feb 07 '25 00:02 idan