-
Notifications
You must be signed in to change notification settings - Fork 11
Space Mono issues #392
Description
🐛 Bug Report
The choice of Space Mono has some known issues where the Space Mono font renders certain character combinations unexpectedly:
- for example
/>renders as an arrow instead of two characters. - certain character sequences don't keep the expected monospace sizing, ie the word
flamewould have a character width of 4 characters instead of 5.
Related issues:
- Ligature in Space Mono google/fonts#406
- Change ligation and alternate forms so they are not enabled by default googlefonts/spacemono#2
💻 Repro or Code Sample
Example />: https://fonts.google.com/specimen/Space+Mono?preview.text=%2F%3E&preview.text_type=custom#standard-styles
Example flame: https://fonts.google.com/specimen/Space+Mono?preview.text=flame&preview.text_type=custom#standard-styles
🤔 Expected Behavior
Character ligatures are not enabled and monospace characters do not combine
😯 Current Behavior
See example above.
💁 Possible Solution
- Choose a less problematic font. Maybe Noto Sans Mono?
- Include the workaround to disable ligatures via css in nimble
- Not ideal as it seems easy to mess-up. Particularly since nimble design may be used outside of Web. Maybe NI should not standardize on the font. Or maybe NI should make a fork like
NI Space Monowith the patches applied.
- Not ideal as it seems easy to mess-up. Particularly since nimble design may be used outside of Web. Maybe NI should not standardize on the font. Or maybe NI should make a fork like
🔦 Context
NI brand has decreed that we use Space Mono as our default monospace font on our website. But it has ligatures that can't be turned off. So, anytime we put a
/>anywhere in that font, it turns it into an arrow. This is a font issue, so escaping the>with a>doesn't work. I'm trying to figure out how to workaround this issue with a SaaS vendor supplying a portion of our website.
🌍 Your Environment
Chrome 98 Win 10
Metadata
Metadata
Assignees
Labels
Type
Projects
Status