Skip to content

[web] Some Unicode fallbacks look bad #129329

@ditman

Description

@ditman

Is there an existing issue for this?

Internal report:

Older issue:

Fixed here:

Steps to reproduce

Attempt to render some of the following glyphs on your Flutter web app:

⌘ ⌥ ⌃ ⇧

(These are very common for MacOS "localization" and keyboard shortcuts in menus)

It shows up as Unicode tofu briefly, and then falls back to... something. I can't figure out what, the fallback font list just says "sans-serif", but whatever it is uses versions of those glyphs that are pretty hideous.

Expected results

The symbols render normally.

Actual results

The symbols eventually rendered don't look good.

The symbols live in the following blocks:

And Flutter Web seems to be using TWO fallback fonts to render them:

  • Noto Sans Symbols (for ⌃)
  • Noto Sans Symbols 2 (for ⌘⌥⇧)

(At least according to the Google Fonts online tester)

The only font I could find that contains all 4 glyphs, that look similar to what they do normally in MacOS is "Inter": https://fonts.google.com/specimen/Inter (there's probably more but it's hard to find fonts by glyph manually in google fonts!)

Should we add "Inter" as one of the fallback fonts, maybe even before the Noto Symbols?

Screenshot

Screenshot 2023-06-21 at 9 08 10 PM

(Comparison of all 3 fonts)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: typographyText rendering, possibly libtxtcustomer: quake (g3)engineflutter/engine related. See also e: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions