Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions lib/web_ui/lib/src/engine/compositor/fonts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ class SkiaFontCollection {
'There was a problem trying to load FontManifest.json');
}

// Add Roboto to the bundled fonts since it is provided by default by
// Flutter.
_fontLoadingFutures
.add(_registerFont('Roboto', _robotoFontUrl, <String, String>{}));

for (Map<String, dynamic> fontFamily in fontManifest) {
final String family = fontFamily['family'];
final List<dynamic> fontAssets = fontFamily['fonts'];
Expand Down
9 changes: 0 additions & 9 deletions lib/web_ui/lib/src/engine/text/font_collection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ part of engine;

const String _testFontFamily = 'Ahem';
const String _testFontUrl = 'packages/ui/assets/ahem.ttf';
const String _robotoFontUrl =
'packages/flutter_web_ui/assets/Roboto-Regular.ttf';

/// This class is responsible for registering and loading fonts.
///
Expand Down Expand Up @@ -54,13 +52,6 @@ class FontCollection {
_assetFontManager = _PolyfillFontManager();
}

// If not on Chrome, add Roboto to the bundled fonts since it is provided
// by default by Flutter.
if (browserEngine != BrowserEngine.blink) {
_assetFontManager
.registerAsset('Roboto', 'url($_robotoFontUrl)', <String, String>{});
}

for (Map<String, dynamic> fontFamily in fontManifest) {
final String family = fontFamily['family'];
final List<dynamic> fontAssets = fontFamily['fonts'];
Expand Down