forked from firka/flutter
[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:
@@ -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',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user