material-foundation/flutter-packages

The font "Noto Color Emoji" fails to render on windows app

hioshih opened this issue ยท 0 comments

Package

google_fonts

Existing issue?

What happened?

Expected vs actual result:

When I use the font "Noto Color Emoji", it doesn't render any emojis.
Other fonts like Roboto, Kanit and others works fine.
Just on the flutter package "google_fonts", it leaves a blank space instead of emojis.
On google chrome, it renders normally too.

Steps to reproduce:

  1. Install the latest google_fonts package with "flutter pub add google_fonts" (^6.2.1 atm)
  2. Start a new flutter project, and add some Text as in the example bellow.
  3. Compile it to windows (Windows 10 - x64)
  4. All emojis using the "Noto Color Emoji" are not rendered while the rest is fine, including other google fonts.

Example:

            Text('Google Fonts ๐Ÿ˜Š Kanit',
                style: GoogleFonts.kanit(
                  textStyle: const TextStyle(fontSize: 20),
                )),
            Text('Google Fonts ๐Ÿ˜Š๐Ÿ‡ซ๐Ÿ‡ท notoEmoji',
                style: GoogleFonts.notoEmoji(
                  textStyle: const TextStyle(fontSize: 20),
                )),
            Text('Google Fonts ๐Ÿ˜Š๐Ÿ‡ซ๐Ÿ‡ท notoColorEmoji',
                style: GoogleFonts.notoColorEmoji(
                  textStyle: const TextStyle(fontSize: 20),
                )),

Output:
image

Relevant log output

No response