Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chtenb opened this issue Nov 10, 2023 · 2 comments
Open

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

chtenb opened this issue Nov 10, 2023 · 2 comments
Milestone

Comments

@chtenb
Copy link

chtenb commented Nov 10, 2023

image

  • As you see, when italics are used the pipe looks awkward.
  • Vertical pipes are used in circumstances where they are supposed to sort of connect vertically, e.g. in ASCII tables
  • It's inconsistent with other orthogonal shapes, like dashes etc, which aren't tilted either
  • The vertical pipe may now be mistaken for a forward slash (this actually happened to me when someone else was reading code from my screen)
@andi0b
Copy link

andi0b commented Nov 11, 2023

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

@cormullion
Copy link

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.

@idan idan added this to the 1.2 milestone May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

4 participants