[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

2
DEPS
View File

@@ -1029,7 +1029,7 @@ deps = {
'packages': [
{
'package': 'flutter/flutter_font_fallbacks',
'version': '6126aab94a469ad17de6c170885b8dee8e8283cfd2383c4c77cf54c702374981'
'version': 'c81f5a2b369b48df3728d2b247a27901bb76bbce0c40b343fe1cc924a36b36ea'
}
],
'dep_type': 'cipd',

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',