-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
The Chinese characters were garbled #18474
Comments
Yeah, seems like we need to add more fonts to the list, or maybe somehow autodetect relevant fonts? The list is in https://github.com/hrydgard/ppsspp/blob/master/Common/Render/Text/draw_text_sdl.cpp#L52 Or I guess it got built without fontconfig? see USE_SDL2_TTF_FONTCONFIG |
In #18732 I'm adding "Droid Sans Fallback" to the list of fonts we try to load. This seems to be present on a very regular Ubuntu install, and can easily be installed as described in the PR if not. |
I encountered a similar issue on Manjaro where the default Chinese font is set to Noto Sans CJK SC. However, it appears that a specific language specification is required, such as To verify, I ran the command /usr/share/fonts/noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK KR,Noto Sans CJK KR Medium:style=Medium,Regular
/usr/share/fonts/noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK HK,Noto Sans CJK HK Medium:style=Medium,Regular
/usr/share/fonts/noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK SC,Noto Sans CJK SC Medium:style=Medium,Regular
/usr/share/fonts/noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK JP,Noto Sans CJK JP Medium:style=Medium,Regular
/usr/share/fonts/noto-cjk/NotoSansCJK-Medium.ttc: Noto Sans CJK TC,Noto Sans CJK TC Medium:style=Medium,Regular |
Interesting. So, we should also influence the choice of which noto variant to prioritize depending on either the system locale, or the chosen language in PPSSPP. But I think we'll add them all to the list, just in a locale dependent order.. It seems the Noto fonts are fairly widespread in support, it's just that it seems we tried to load it using the name "Noto Sans CJK Medium" which is missing the language specifiers. |
#18734 might improve it. |
This should be fixed now, please re-open if not. |
Game or games this happens in
none
What area of the game / PPSSPP
What should happen
in ubuntu 23.10 flatpak ppsspp,the Chinese characters were garbled
Logs
Platform
Linux / BSD
Mobile phone model or graphics card
GTX 1060
PPSSPP version affected
1.16.6
Last working version
ubuntu snap 1.12.3
Graphics backend (3D API)
Vulkan
Checklist
The text was updated successfully, but these errors were encountered: