githubnext / monaspace

An innovative superfamily of fonts for code
https://monaspace.githubnext.com
SIL Open Font License 1.1
13.98k stars 232 forks source link

Columns don't align properly under all circumstances #43

Open Wuerfel21 opened 10 months ago

Wuerfel21 commented 10 months ago

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

galdor commented 10 months ago

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

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

Tested in Emacs, no problem with other monospace fonts.

idan commented 10 months ago

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.

Wuerfel21 commented 10 months ago

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

Finii commented 10 months ago

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)

galdor commented 10 months ago

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.