material-foundation / flutter-packages

A collection of useful Material Design packages
https://pub.dev/publishers/material.io
Apache License 2.0
834 stars 156 forks source link

Condensed fonts silently failing #584

Closed ajbc closed 5 months ago

ajbc commented 5 months ago

Package

google_fonts

Existing issue?

What happened?

Expected vs actual result:

If I try to use Barlow (or other Google fonts), I can get it to work without any issues. Barlow Condensed, Barlow Semi-Condensed, and Roboto Condensed all appear to as Roboto without any errors or warnings.

Font reference:

Screenshot 2024-04-25 at 10 23 54 PM

Steps to reproduce:

For example, the following works:

Text(
  'This is Barlow.  Some distinctive characters: MQ4',
  style: GoogleFonts.barlow(),
),

But this doesn't:

Text(
  'This is not Barlow Condensed. Some distinctive characters: MQ4',
  style: GoogleFonts.barlowCondensed(),
),

It looks like plain Roboto instead, and no errors or warnings are given.

Results:

Screenshot 2024-04-25 at 10 25 10 PM

The issue was on a Mac using Chrome for running the app.

Relevant log output

No response

ajbc commented 5 months ago

Was only failing for Mac OS desktop, not Chrome or other devices.