Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: typographyText rendering, possibly libtxtText rendering, possibly libtxtengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-host-armBuilding on an ARM-based platformBuilding on an ARM-based platformplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-linuxOwned by the Linux platform teamOwned by the Linux platform teamtriaged-linuxTriaged by the Linux platform teamTriaged by the Linux platform team
Description
Steps to reproduce
- Make sure that fonts for CJK text (i.e. Noto Sans CJK) are installed. (via
sudo dnf install google-noto-sans-cjk-fonts) - Create a Flutter project via IDEA's 'New' wizard.
- 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.
Reacted by Byoungchan Lee, viplifes and Fries_I23
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: typographyText rendering, possibly libtxtText rendering, possibly libtxtengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-host-armBuilding on an ARM-based platformBuilding on an ARM-based platformplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-linuxOwned by the Linux platform teamOwned by the Linux platform teamtriaged-linuxTriaged by the Linux platform teamTriaged by the Linux platform team
Activity
huycozy commentedon Dec 1, 2023
I'm using Ubuntu distro and can't reproduce this issue:
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!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)
hustler-not-chatty commentedon Dec 1, 2023
The GTK program can display CJK text just fine.
And I just reproduced this problem on an Ubuntu 22.04 LTS environment, with updated flutter.
flutter doctor -v
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? @huycozyhuycozy commentedon Dec 4, 2023
I'm also using
Ubuntu 22.04.3 LTSbut it's not reproduced as above demo. Can you share the command to install Noto Sans CJK font (fromaptfor eg)?hustler-not-chatty commentedon Dec 4, 2023
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?
huycozy commentedon Dec 5, 2023
Thanks for checking that. It could be an
arm-host-specific issue. Labeling this issue for other's input.59 remaining items
fix(arm64-linux): fix CJK font rendering on flutter-elinux (#15324)
Separate ARM64 Linux Desktop and Embedded engine builds to fix CJK an…
github-actions commentedon Aug 19, 2026
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 -vand a minimal reproduction of the issue.