[web] Add Ethiopic font fallback. (flutter/engine#53180)

Adds `Noto Sans Ethiopic` font as a fallback so Flutter web can render text in ethiopic scripts (for languages like Tigrinya or Amharic)

## Issues

* Fixes https://github.com/flutter/flutter/issues/149616

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
David Iglesias
2024-06-03 16:24:50 -07:00
committed by GitHub
parent 2eff476e2c
commit ac58f0a9c2
4 changed files with 1744 additions and 1655 deletions

View File

@@ -365,6 +365,7 @@ const List<String> fallbackFonts = <String>[
'Noto Sans Egyptian Hieroglyphs',
'Noto Sans Elbasan',
'Noto Sans Elymaic',
'Noto Sans Ethiopic',
'Noto Sans Georgian',
'Noto Sans Glagolitic',
'Noto Sans Gothic',

View File

@@ -254,6 +254,13 @@ void testMain() {
]);
});
// https://github.com/flutter/flutter/issues/149616
test('can find Ethiopic script glyphs ()', () async {
await checkDownloadedFamiliesForString('ኢትዮጵያ', <String>[
'Noto Sans Ethiopic',
]);
});
test('findMinimumFontsForCodePoints for all supported code points',
() async {
// Collect all supported code points from all fallback fonts in the Noto
@@ -317,6 +324,7 @@ void testMain() {
'Noto Sans Egyptian Hieroglyphs',
'Noto Sans Elbasan',
'Noto Sans Elymaic',
'Noto Sans Ethiopic',
'Noto Sans Georgian',
'Noto Sans Glagolitic',
'Noto Sans Gothic',