-
Notifications
You must be signed in to change notification settings - Fork 28.5k
When applying Korean font (NotoSansCJKkr) in Flutter, text is broken on Android #168136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@leeseungryong586 |
Title Body Steps to reproduce: Download NotoSansCJKkr-Regular.otf Place it in assets/fonts/ Modify pubspec.yaml:: yaml dart (Paste your flutter doctor output here)Platform: Terminal input Flutter run key commands. A Dart VM Service on SM S928N is available at: http://127.0.0.1:11635/-n6_oAdjJCc=/ main.dart void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { @OverRide class HomePage extends StatefulWidget { @OverRide class _HomePageState extends State { final String _apiKey = 'sk******zBsA'; The API key has been entered correctly. It has been modified on the screen. @OverRide Future _listenAndSend() async { Future _handleGPTFlow(String koreanQuestion) async {
} Future _fetchGPTResponse(String question) async {
} Future _translateToKorean(String englishText) async {
} Future _speak(String text, {required String lang}) async { @OverRide name: voice_gpt_drive_flutter publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: dependencies: dev_dependencies: flutter: assets: fonts: |
Please try on latest stable version (3.29.3). Also make sure to create new Flutter project (counter app) and then apply your scenario in it to check if it still persist or not, without third party packages. |
Thank you for giving me a solution for my problem. I am new to flutter and
also a computer novice, so I am listening to the answer by gpt and solving
it one by one. Please help me a lot. Can you also give me your opinion by
email? I think it was judged as completed because the answer was wrong in
Issue #168136.
2025년 5월 5일 (월) 오후 4:56, darshankawar ***@***.***>님이 작성:
… *darshankawar* left a comment (flutter/flutter#168136)
<#168136 (comment)>
Flutter version: (e.g., 3.19.0)
Please try on latest stable version (3.29.3). Also make sure to create new
Flutter project (counter app) and then apply your scenario in it to check
if it still persist or not, without third party packages.
—
Reply to this email directly, view it on GitHub
<#168136 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BR7EN3NGBQV2VPNRM6GM3M3244KSTAVCNFSM6AAAAAB4HN2PIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNJQGE4TONBQGI>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
If you are looking for code support, please raise this in support channels like stackoverflow. If this is genuine issue, please try to upgrade your stable version to latest first, re-run your scenario to check if it fixes it or still persist. |
Problem Description
I tried to print Korean using the .otf font file (NotoSansCJKkr-Regular.otf) in Flutter, but the text appears broken on Android devices (□ or strange characters).
The font was downloaded from the official Google Noto GitHub, and was properly registered in the Flutter app's pubspec.yaml, and also exists correctly in the assets folder.
Settings
pubspec.yaml
Flutter Doctor output
theme: ThemeData(
fontFamily: 'NotoSansCJKkr',
)
The text was updated successfully, but these errors were encountered: