Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f2a5a1f

Browse files
author
Nurhan Turgut
committed
do not wrap font family name in webkit otherwise icons not show on safari 13 (both IOS and desktop)
1 parent beeb8e0 commit f2a5a1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web_ui/lib/src/engine/text/font_collection.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class _FontManager {
118118
// family that is not correct CSS syntax. To ensure the font family is
119119
// accepted on these browsers, wrap it in quotes.
120120
// See: https://drafts.csswg.org/css-fonts-3/#font-family-prop
121-
if (browserEngine == BrowserEngine.webkit || browserEngine == BrowserEngine.firefox) {
121+
if (browserEngine == BrowserEngine.firefox) {
122122
family = "'$family'";
123123
}
124124
// try/catch because `new FontFace` can crash with an improper font family.

0 commit comments

Comments
 (0)