[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:
2
DEPS
2
DEPS
@@ -1029,7 +1029,7 @@ deps = {
|
||||
'packages': [
|
||||
{
|
||||
'package': 'flutter/flutter_font_fallbacks',
|
||||
'version': '6126aab94a469ad17de6c170885b8dee8e8283cfd2383c4c77cf54c702374981'
|
||||
'version': 'c81f5a2b369b48df3728d2b247a27901bb76bbce0c40b343fe1cc924a36b36ea'
|
||||
}
|
||||
],
|
||||
'dep_type': 'cipd',
|
||||
|
||||
@@ -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