Skip to content

Space Mono issues #392

@rajsite

Description

@rajsite

🐛 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 flame would have a character width of 4 characters instead of 5.

Related issues:

💻 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 Mono with the patches applied.

🔦 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 &gt 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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions