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

Slashed or dotted zero to differentiate from O #33

Open
flipswitchingmonkey opened this issue Apr 8, 2019 · 3 comments
Open

Slashed or dotted zero to differentiate from O #33

flipswitchingmonkey opened this issue Apr 8, 2019 · 3 comments

Comments

@flipswitchingmonkey
Copy link

It'd be nice if the zero character could differ more from the O character:
image
Ideally the numeric zero would be slashed or dotted, so as to clearly differ from the letter O.
See e.g. https://github.com/tonsky/FiraCode for an example.

@thisisdano
Copy link
Member

I could see this being a good case for an alternate character — accessed with something like font-feature-settings: "zero"

@otherjoel
Copy link

Worth noting: Public Sans is a text/UI font, not a monospace or coding font. Most text/display typefaces don’t have slashed or dotted zeros.

Generally if you have ID numbers or other contexts where 0/O differentiation is important, you would use a different typeface for those elements.

The US Web Design System, of which Public Sans is a part, currently specifies Roboto Mono (which does have a slashed zero) for this purpose. See https://v2.designsystem.digital.gov/components/typography/

@x448
Copy link

x448 commented Mar 26, 2023

Inter is a very popular sans-serif font that provides alternate character for slashed-zero.

Out of the dozen extra features offered by Inter, the optional slashed-zero is the only one that makes me regularly recommend Inter over Public Sans.

It's convenient and useful to differentiate between zero and capital O without having to switch to a monospaced font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants