githubnext / monaspace

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

Italic styles: make the vertical pipe character actually vertical #48

Open chtenb opened 1 year ago

chtenb commented 1 year ago

image

andi0b commented 1 year ago

Source Code Pro seems to have that behaviour for the pipe charcter (it doesn't change between regular and italic)

cormullion commented 12 months ago

It doesn't look like there's much of a consensus about whether the pipe (Vertical Line U+007C) should be vertical when in an italic font. Here's a few italic fonts showing |i|:

Screenshot 2023-11-24 at 09 45 00

For drawing vertical lines (eg in boxes) it's usually better to use the Unicode Box Drawing characters (U+2500...) which are always vertical/horizontal, but of course not all fonts have them, and the fall back fonts sometimes introduce spacing issues...

Forward slashes and vertical lines usually look different in italic fonts:

Screenshot 2023-11-24 at 09 52 58

but (in my opinion) italicized coding fonts are never going to be perfect in every situation.