Skip to content

CJK text not showing on arm64 Linux desktop. #139293

Closed

Description

@hustler-not-chatty

Steps to reproduce

  1. Make sure that fonts for CJK text (i.e. Noto Sans CJK) are installed. (via sudo dnf install google-noto-sans-cjk-fonts)
  2. Create a Flutter project via IDEA's 'New' wizard.
  3. Run it.

Expected results

Chinese text should shown correctly.

Actual results

Only western characters are displayed.

Code sample

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) {
    return MaterialApp(
        title: 'Flutter Demo on Linux',
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
          useMaterial3: true,
        ),
        home: Scaffold(
          appBar: AppBar(
            backgroundColor: Theme.of(context).colorScheme.inversePrimary,
            title: const Text('Flutter Demo'),
          ),
          body: const Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Text(
                  '您好,世界。Hello world.',
                ),
              ],
            ),
          ),
        ));
  }
}

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.16.1, on Fedora Linux 39 (Container Image) 4.19.71-23-kr990, locale zh_CN.UTF-8)
    • Flutter version 3.16.1 on channel stable at /home/boss/flutter
    • Upstream repository https://github.com/flutter/flutter
    • Framework revision 7f20e5d18c (3 days ago), 2023-11-27 09:47:30 -0800
    • Engine revision 22b600f240
    • Dart version 3.2.1
    • DevTools version 2.28.3

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 17.0.4 (Fedora 17.0.4-1.fc39)
    • cmake version 3.27.7
    • ninja version 1.11.1
    • pkg-config version 1.9.5

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2023.2)
    • IntelliJ at /opt/idea-IC-232.10227.8
    • Flutter plugin version 76.3.4
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.84.2)
    • VS Code at /usr/share/code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-arm64 • Fedora Linux 39 (Container Image) 4.19.71-23-kr990

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 3 categories.

Activity

  1. added
    in triagePresently being triaged by the triage team
    on Dec 1, 2023
  2. huycozy commented on Dec 1, 2023

    @huycozy
    Member

    I'm using Ubuntu distro and can't reproduce this issue:

    Screenshot from 2023-12-01 14-58-51

    flutter doctor -v (stable & master)
    [✓] Flutter (Channel stable, 3.16.2, on Ubuntu 22.04.3 LTS 6.2.0-36-generic, locale en_US.UTF-8)
        • Flutter version 3.16.2 on channel stable at /home/huynq/Documents/Working/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 9e1c857886 (14 hours ago), 2023-11-30 11:51:18 -0600
        • Engine revision cf7a9d0800
        • Dart version 3.2.2
        • DevTools version 2.28.3
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc3)
        • Android SDK at /home/huynq/Android/Sdk/
        • Platform android-33, build-tools 34.0.0-rc3
        • Java binary at: /home/huynq/Documents/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • Chrome at google-chrome
    
    [✓] Linux toolchain - develop for Linux desktop
        • Ubuntu clang version 14.0.0-1ubuntu1.1
        • cmake version 3.22.1
        • ninja version 1.10.1
        • pkg-config version 0.29.2
    
    [✓] Android Studio (version 2022.3)
        • Android Studio at /snap/android-studio/128/android-studio
        • Flutter plugin version 76.2.2
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    
    [✓] Android Studio (version 2021.1)
        • Android Studio at /home/huynq/Documents/android-studio/
        • Flutter plugin version 67.0.1
        • Dart plugin version 211.7817
        • android-studio-dir = /home/huynq/Documents/android-studio/
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    
    [✓] VS Code (version 1.84.2)
        • VS Code at /usr/share/code
        • Flutter extension version 3.76.0
    
    [✓] Connected device (2 available)
        • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.3 LTS 6.2.0-36-generic
        • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.123
    
    [✓] Network resources
        • All expected network resources are available.
    
    • No issues found!
    [!] Flutter (Channel master, 3.17.0-20.0.pre.12, on Ubuntu 22.04.3 LTS 6.2.0-36-generic, locale en_US.UTF-8)
        • Flutter version 3.17.0-20.0.pre.12 on channel master at /home/huynq/Documents/Working/flutter_master
        ! Warning: `flutter` on your path resolves to /home/huynq/Documents/Working/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /home/huynq/Documents/Working/flutter_master. Consider adding /home/huynq/Documents/Working/flutter_master/bin to the front of your path.
        ! Warning: `dart` on your path resolves to /home/huynq/Documents/Working/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /home/huynq/Documents/Working/flutter_master. Consider adding /home/huynq/Documents/Working/flutter_master/bin to the front of your path.
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 8f518573af (24 minutes ago), 2023-12-01 02:19:09 -0500
        • Engine revision 51ef764275
        • Dart version 3.3.0 (build 3.3.0-174.2.beta)
        • DevTools version 2.30.0
        • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc3)
        • Android SDK at /home/huynq/Android/Sdk/
        • Platform android-33, build-tools 34.0.0-rc3
        • Java binary at: /home/huynq/Documents/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • Chrome at google-chrome
    
    [✓] Linux toolchain - develop for Linux desktop
        • Ubuntu clang version 14.0.0-1ubuntu1.1
        • cmake version 3.22.1
        • ninja version 1.10.1
        • pkg-config version 0.29.2
    
    [✓] Android Studio (version 2022.3)
        • Android Studio at /snap/android-studio/128/android-studio
        • Flutter plugin version 76.2.2
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    
    [✓] Android Studio (version 2021.1)
        • Android Studio at /home/huynq/Documents/android-studio/
        • Flutter plugin version 67.0.1
        • Dart plugin version 211.7817
        • android-studio-dir = /home/huynq/Documents/android-studio/
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    
    [✓] VS Code (version 1.84.2)
        • VS Code at /usr/share/code
        • Flutter extension version 3.76.0
    
    [✓] Connected device (2 available)
        • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.3 LTS 6.2.0-36-generic
        • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.123
    
    [✓] Network resources
        • All expected network resources are available.
    
    ! Doctor found issues in 1 category.

    Based on some issues reported on Fedora distro recently (#138665, #138488), this could be related to Fedora 39 release. So I would suggest you report this issue to them as well.

    Meanwhile, please try running this simple GTK program to see if the same issue occurs or not (please replace the English text with CJK text as in your sample code above)

  3. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 1, 2023
  4. hustler-not-chatty commented on Dec 1, 2023

    @hustler-not-chatty
    Author

    The GTK program can display CJK text just fine.

    image

    And I just reproduced this problem on an Ubuntu 22.04 LTS environment, with updated flutter.

    flutter doctor -v
    [✓] Flutter (Channel stable, 3.16.2, on Ubuntu 22.04.3 LTS 4.19.71-23-kr990, locale C.UTF-8)
        • Flutter version 3.16.2 on channel stable at /home/boss/flutter
        • Upstream repository https://github.com/flutter/flutter
        • Framework revision 9e1c857886 (17 hours ago), 2023-11-30 11:51:18 -0600
        • Engine revision cf7a9d0800
        • Dart version 3.2.2
        • DevTools version 2.28.3
    
    [✗] Android toolchain - develop for Android devices
        ✗ Unable to locate Android SDK.
          Install Android Studio from: https://developer.android.com/studio/index.html
          On first launch it will assist you in installing the Android SDK components.
          (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
          If the Android SDK has been installed to a custom location, please use
          `flutter config --android-sdk` to update to that location.
    
    
    [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
        ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
    
    [✓] Linux toolchain - develop for Linux desktop
        • Ubuntu clang version 14.0.0-1ubuntu1.1
        • cmake version 3.22.1
        • ninja version 1.10.1
        • pkg-config version 0.29.2
    
    [!] Android Studio (not installed)
        • Android Studio not found; download from https://developer.android.com/studio/index.html
          (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
    
    [✓] Connected device (1 available)
        • Linux (desktop) • linux • linux-arm64 • Ubuntu 22.04.3 LTS 4.19.71-23-kr990
    
    [✓] Network resources
        • All expected network resources are available.
    
    ! Doctor found issues in 3 categories.
    
    

    BTW, I ran the built Flutter program with FC_DEBUG=1, and didn't see any debug message from fontconfig. Is this issue occurred because Flutter not using fontconfig at all, or something else? @huycozy

  5. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 1, 2023
  6. huycozy commented on Dec 4, 2023

    @huycozy
    Member

    And I just reproduced this problem on an Ubuntu 22.04 LTS environment, with updated flutter.

    I'm also using Ubuntu 22.04.3 LTS but it's not reproduced as above demo. Can you share the command to install Noto Sans CJK font (from apt for eg)?

  7. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 4, 2023
  8. hustler-not-chatty commented on Dec 4, 2023

    @hustler-not-chatty
    Author

    And I just reproduced this problem on an Ubuntu 22.04 LTS environment, with updated flutter.

    I'm also using Ubuntu 22.04.3 LTS but it's not reproduced as above demo. Can you share the command to install Noto Sans CJK font (from apt for eg)?

    It is sudo apt install fonts-noto-cjk.

    Meanwhile, I found a 64-bit Linux machine, the CJK fonts rendered as expected.

    I suspect that it's specific to arm64 Linux?

  9. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 4, 2023
  10. huycozy commented on Dec 5, 2023

    @huycozy
    Member

    Thanks for checking that. It could be an arm-host-specific issue. Labeling this issue for other's input.

  11. added
    a: typographyText rendering, possibly libtxt
    platform-linuxBuilding on or for Linux specifically
    and removed
    in triagePresently being triaged by the triage team
    on Dec 5, 2023
  12. 59 remaining items

  13. added a commit that references this issue on Aug 5, 2026
    e4c0224
  14. github-actions commented on Aug 19, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktopa: internationalizationSupporting other languages or locales. (aka i18n)a: typographyText rendering, possibly libtxtengineflutter/engine related. See also e: labels.platform-host-armBuilding on an ARM-based platformplatform-linuxBuilding on or for Linux specificallyteam-linuxOwned by the Linux platform teamtriaged-linuxTriaged by the Linux platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions