flutter-packages icon indicating copy to clipboard operation
flutter-packages copied to clipboard

Fallback font

Open marchellodev opened this issue 3 years ago • 2 comments

It would be great to be able to specify a fallback font. So if a character doesn't exist in the main font, the glyph from the fallback one is used. It would make the process of adding new languages to the app a bit easier.

marchellodev avatar Aug 14 '20 17:08 marchellodev

This would be nice, and at the moment this is a breaker for apps that include other languages.

It would make the process of adding new languages to the app a bit easier.

@marchellodev Did you find a workaround?

gabrc52 avatar Feb 20 '21 22:02 gabrc52

@gabrc52 Yep, I store the name of the font in the localisation file, and then call GoogleFonts.getFont(fontName)

marchellodev avatar Feb 21 '21 00:02 marchellodev