[GH-ISSUE #3350] [Bug] Can not select the chinese font #1488

Open
opened 2026-03-23 20:49:58 +00:00 by mirror · 5 comments
Owner

Originally created by @leenzhu on GitHub (Sep 6, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3350

Bug Description

After checking the fonts list of Setting -> Appearance -> Font Family, there is no chinese font found in the list.

How to Reproduce

Open Setting -> Appearance -> Font Family, try to select a font for chinese, such as SimSun/宋体.

Expected Behavior

All chinese font installed could be selected as the font family.

Operating System

win10 Home(中文版/Chinese)

AppFlowy Version(s)

0.3.1

Screenshots

No response

Additional Context

No response

Originally created by @leenzhu on GitHub (Sep 6, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3350 ### Bug Description After checking the fonts list of `Setting -> Appearance -> Font Family`, there is no chinese font found in the list. ### How to Reproduce Open `Setting -> Appearance -> Font Family`, try to select a font for chinese, such as `SimSun/宋体`. ### Expected Behavior All chinese font installed could be selected as the font family. ### Operating System win10 Home(中文版/Chinese) ### AppFlowy Version(s) 0.3.1 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@KonohaVio commented on GitHub (Apr 7, 2024):

Actually, I wish I could choose 'Microsoft YaHei' firstly, since that's the pre-installed font for Windows OS。

<!-- gh-comment-id:2041285770 --> @KonohaVio commented on GitHub (Apr 7, 2024): Actually, I wish I could choose 'Microsoft YaHei' firstly, since that's the pre-installed font for Windows OS。
Author
Owner

@KonohaVio commented on GitHub (Apr 7, 2024):

I actually have a temporary solution here, which is to copy msyh.ttc(Microsoft YaHei) to the
"AppFlowy\data\flutter_assets\assets\google_fonts\Poppins".

Then backup "AppFlowy\data\flutter_assets\FontManifest.json" and edit it to change the default font to
{"family": "Poppins", "fonts":[{"weight":100, "asset": "assets/google_fonts/Poppins/msyh.ttc"}.

This is just a temporary solution, I can display the Microsoft Yahei font normally now, we can test it with simplified Chinese characters .
image
image

<!-- gh-comment-id:2041296378 --> @KonohaVio commented on GitHub (Apr 7, 2024): I actually have a temporary solution here, which is to copy `msyh.ttc(Microsoft YaHei)` to the `"AppFlowy\data\flutter_assets\assets\google_fonts\Poppins"`. Then backup `"AppFlowy\data\flutter_assets\FontManifest.json"` and edit it to change the default font to `{"family": "Poppins", "fonts":[{"weight":100, "asset": "assets/google_fonts/Poppins/msyh.ttc"}`. This is just a temporary solution, I can display the Microsoft Yahei font normally now, we can test it with simplified Chinese characters `门`. ![image](https://github.com/AppFlowy-IO/AppFlowy/assets/61352919/b3b0bb58-20d1-4433-b31c-555d1ae8fc21) ![image](https://github.com/AppFlowy-IO/AppFlowy/assets/61352919/d3fbbd27-d84e-41f6-b720-95faa17c1ab7)
Author
Owner

@yishi69 commented on GitHub (Oct 23, 2024):

I actually have a temporary solution here, which is to copy msyh.ttc(Microsoft YaHei) to the "AppFlowy\data\flutter_assets\assets\google_fonts\Poppins".

Then backup "AppFlowy\data\flutter_assets\FontManifest.json" and edit it to change the default font to {"family": "Poppins", "fonts":[{"weight":100, "asset": "assets/google_fonts/Poppins/msyh.ttc"}.

This is just a temporary solution, I can display the Microsoft Yahei font normally now, we can test it with simplified Chinese characters . image image

怎么编辑FontManifest.json的,能说的更细一点吗。我直接将{"family": "Poppins", "fonts":[{"weight":100, "asset": "assets/google_fonts/Poppins/msyh.ttc"}放到最前面,这样没用

<!-- gh-comment-id:2431394632 --> @yishi69 commented on GitHub (Oct 23, 2024): > I actually have a temporary solution here, which is to copy `msyh.ttc(Microsoft YaHei)` to the `"AppFlowy\data\flutter_assets\assets\google_fonts\Poppins"`. > > Then backup `"AppFlowy\data\flutter_assets\FontManifest.json"` and edit it to change the default font to `{"family": "Poppins", "fonts":[{"weight":100, "asset": "assets/google_fonts/Poppins/msyh.ttc"}`. > > This is just a temporary solution, I can display the Microsoft Yahei font normally now, we can test it with simplified Chinese characters `门`. ![image](https://private-user-images.githubusercontent.com/61352919/320250680-b3b0bb58-20d1-4433-b31c-555d1ae8fc21.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjk2NzQzODgsIm5iZiI6MTcyOTY3NDA4OCwicGF0aCI6Ii82MTM1MjkxOS8zMjAyNTA2ODAtYjNiMGJiNTgtMjBkMS00NDMzLWIzMWMtNTU1ZDFhZThmYzIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDIzVDA5MDEyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2NjdmZTM1YzAwZTBkOTQzMGNmMmM2ZmM5MmQzYmNhMGVkMjVkZWRiNTIzMzI5MGJkNGRiOGVhM2Y0MDFkMTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.deehan1n6x7XBJ1F743tpi8H4-KcHEbnrZetmVJ85Is) ![image](https://private-user-images.githubusercontent.com/61352919/320250673-d3fbbd27-d84e-41f6-b720-95faa17c1ab7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjk2NzQzODgsIm5iZiI6MTcyOTY3NDA4OCwicGF0aCI6Ii82MTM1MjkxOS8zMjAyNTA2NzMtZDNmYmJkMjctZDg0ZS00MWY2LWI3MjAtOTVmYWExN2MxYWI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDIzVDA5MDEyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0Nzg4ZTcxOWFiODNkMDA0ODVmNWU0MzllMjQwM2YzNjM1NjA2YTkwOGNmY2MyZTgzOTNhYmYxNDA5MDI3NjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Rz5g9rdwbz2D0qDpd-cjkAdLPL-OEtxn4ScYsEnFd0k) 怎么编辑FontManifest.json的,能说的更细一点吗。我直接将{"family": "Poppins", "fonts":[{"weight":100, "asset": "assets/google_fonts/Poppins/msyh.ttc"}放到最前面,这样没用
Author
Owner

@yishi69 commented on GitHub (Oct 23, 2024):

I actually have a temporary solution here, which is to copy msyh.ttc(Microsoft YaHei) to the "AppFlowy\data\flutter_assets\assets\google_fonts\Poppins".

Then backup "AppFlowy\data\flutter_assets\FontManifest.json" and edit it to change the default font to {"family": "Poppins", "fonts":[{"weight":100, "asset": "assets/google_fonts/Poppins/msyh.ttc"}.

This is just a temporary solution, I can display the Microsoft Yahei font normally now, we can test it with simplified Chinese characters . image image

搞定了,谢谢你提供的方法

<!-- gh-comment-id:2431470050 --> @yishi69 commented on GitHub (Oct 23, 2024): > I actually have a temporary solution here, which is to copy `msyh.ttc(Microsoft YaHei)` to the `"AppFlowy\data\flutter_assets\assets\google_fonts\Poppins"`. > > Then backup `"AppFlowy\data\flutter_assets\FontManifest.json"` and edit it to change the default font to `{"family": "Poppins", "fonts":[{"weight":100, "asset": "assets/google_fonts/Poppins/msyh.ttc"}`. > > This is just a temporary solution, I can display the Microsoft Yahei font normally now, we can test it with simplified Chinese characters `门`. ![image](https://private-user-images.githubusercontent.com/61352919/320250680-b3b0bb58-20d1-4433-b31c-555d1ae8fc21.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkI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RfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDIzVDA5MjgzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiMWEzZjc2ZDcyMmY1YWMxYmQwYWRlNWVjNjY5ZWJhMGRjOTczNjU5NzI2MTE1Nzk2NWZmNTgwOGQ4NThlZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.y_ub8NyzUdM9iaLRYNcgBhajDJb4Qtueji2h6BKwMc8) 搞定了,谢谢你提供的方法
Author
Owner

@JustLikeCheese commented on GitHub (Nov 23, 2024):

更改字体为微软雅黑字体的详细教程:

  1. 复制 msyh.ttc(微软雅黑体) 到 "AppFlowy\data\flutter_assets\assets\google_fonts\Poppins" 目录下
  2. 备份 "AppFlowy\data\flutter_assets\FontManifest.json"
  3. 修改 "FontManifest.json" 里面的 "assets/google_fonts/Poppins/Poppins-ExtraLight.ttf" 字体路径为 "assets/google_fonts/Poppins/msyh.ttc"
  4. 打开 AppFlowy,编辑 设置 -> 工作区 -> 工作区字体 为 Poppins 字体即可生效
  5. 在新页面中输入 ,来验证是否成功修改字体

github-vscode-image.png
github-vscode-image2.png
github-appflowy-image.png
github-appflowy-image2.png

<!-- gh-comment-id:2495243453 --> @JustLikeCheese commented on GitHub (Nov 23, 2024): 更改字体为微软雅黑字体的详细教程: 1. 复制 msyh.ttc(微软雅黑体) 到 `"AppFlowy\data\flutter_assets\assets\google_fonts\Poppins"` 目录下 2. 备份 "AppFlowy\data\flutter_assets\FontManifest.json" 3. 修改 "FontManifest.json" 里面的 `"assets/google_fonts/Poppins/Poppins-ExtraLight.ttf"` 字体路径为 `"assets/google_fonts/Poppins/msyh.ttc"` 4. 打开 AppFlowy,编辑 设置 -> 工作区 -> 工作区字体 为 `Poppins` 字体即可生效 5. 在新页面中输入 `门`,来验证是否成功修改字体 ![github-vscode-image.png](https://pic2.imge.cc/2024/11/23/67413eadc9312.png) ![github-vscode-image2.png](https://pic2.imge.cc/2024/11/23/6741414080714.png) ![github-appflowy-image.png](https://pic2.imge.cc/2024/11/23/674141a7dc093.png) ![github-appflowy-image2.png](https://pic2.imge.cc/2024/11/23/6741420e846b0.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1488
No description provided.