Skip to content

[web] Some of NotoSans KR glyphs are not fetched from google CDN after flutter 3.24.0 #188255

Description

@rafalbednarczuk

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:

Image

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:

Image

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.

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: typographyText rendering, possibly libtxtassigned for triageissue is assigned to a domain expert for further triagec: regressionIt was better in the past than it is nowe: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.found in release: 3.44Found to occur in 3.44has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyteam-webOwned by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions