Steps to reproduce
Run on web: flutter run -d chrome on the code sample
Expected results
Characters are displayed even if there are no fonts files provided, because there is ultimate flutter font fallback that should get notosans kr glyphs from fonts.google.com CDN.
Actual results
Characters are not fetched, tofu characters are displayed instead.
This happens only for small subset of NotoSansKR glyphs, most of them work correctly.
The only way to display notosans KR is to download and add to the project the font: https://fonts.google.com/noto/specimen/Noto+Sans+KR
the fallback doesn't work if local font covering the characters is not set:
THIS IS A REGRESSION, A BUG compared to flutter version 3.24.0. In flutter 3.24.0 fonts take long to fetch for the first time without cache, but eventually they are loaded:
Code sample
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
// 원 각 ꥠힰ
const text = '\u{110B}\u{116F}\u{11AB} '
'\u{1100}\u{1161}\u{11A8} '
'\u{A960}\u{D7B0}';
return MaterialApp(
home: Scaffold(
body: Center(
child: const Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
text,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 32,
),
),
Text(
text,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 32,
fontFamily: 'Noto Sans KR',
),
),
],
),
),
),
);
}
}
Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.44.2, on macOS 15.7.5 24G624 darwin-arm64, locale en-US)
! Warning: `flutter` on your path resolves to /Users/rafalbednarczuk/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at
/Users/rafalbednarczuk/.puro/envs/three44/flutter. Consider adding /Users/rafalbednarczuk/.puro/envs/three44/flutter/bin to the front of your path.
! Warning: `dart` on your path resolves to /Users/rafalbednarczuk/flutter/bin/dart, which is not inside your current Flutter SDK checkout at
/Users/rafalbednarczuk/.puro/envs/three44/flutter. Consider adding /Users/rafalbednarczuk/.puro/envs/three44/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Connected device (2 available)
[✓] Network resources
! Doctor found issues in 1 category.
Steps to reproduce
Run on web:
flutter run -d chromeon the code sampleExpected results
Characters are displayed even if there are no fonts files provided, because there is ultimate flutter font fallback that should get notosans kr glyphs from fonts.google.com CDN.
Actual results
Characters are not fetched, tofu characters are displayed instead.
This happens only for small subset of NotoSansKR glyphs, most of them work correctly.
The only way to display notosans KR is to download and add to the project the font: https://fonts.google.com/noto/specimen/Noto+Sans+KR
the fallback doesn't work if local font covering the characters is not set:
THIS IS A REGRESSION, A BUG compared to flutter version 3.24.0. In flutter 3.24.0 fonts take long to fetch for the first time without cache, but eventually they are loaded:
Code sample
Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):