Bug 448344

Summary: Some CJK letters are not using the correct font in Krita's Android version
Product: [Applications] krita Reporter: Tyson Tan <tysontanx>
Component: TranslationAssignee: sh_zam <shzam>
Status: ASSIGNED ---    
Severity: normal CC: alvin, shzam
Priority: NOR    
Version First Reported In: 5.0.2   
Target Milestone: ---   
Platform: Android   
OS: Android 11.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The CJK letters 日 中 are not using the correct font in Krita's Android version
The CJK letter 上 is not using the correct font

Description Tyson Tan 2022-01-13 03:58:09 UTC
Created attachment 145391 [details]
The CJK letters 日 中 are not using the correct font in Krita's Android version

Some CJK letters are not using the correct font in Krita's Android version. I suppose we should assign Noto-Sans-CJK fonts as the default fonts for CJK translation.
Comment 1 Tyson Tan 2022-01-13 03:59:54 UTC
Created attachment 145392 [details]
The CJK letter 上 is not using the correct font

In this screenshot of Create New Document dialogue, the CJK letter 上 from 添加上述尺寸到预设 is not using the correct font.
Comment 2 Tyson Tan 2022-01-13 04:04:37 UTC
It is also possible that Krita is using a wrong priority order of the subset of the Noto-Sans-CJK fonfamily. The font family has 5 language variants (HK/JP/KR/SC/TC), each with 7 weight styles. 

It looks to me that Krita is using a Thin/Light variant for those affected letters.
Comment 3 Tyson Tan 2022-01-13 04:07:08 UTC
Or, it is also possible that Krita sees the OS's default font (which is not Noto-Sans-CJK on my phone) as higher priority.

But it's still weird that only a few letters are affected.
Comment 4 Alvin Wong 2022-01-13 12:01:38 UTC
I can't reproduce this on my device (running LineageOS 15.1). CJK text renders fine for me here with 5.0.2.
Comment 5 Tyson Tan 2022-01-14 03:35:22 UTC
I'm using MIUI 12.5 International on a Mi 10T Pro (Hong Kong version). Language is set to Simplified Chinese. I'm pretty sure MIUI is using a unique default font other than Noto-Sans-CJK, maybe 小米兰亭 Pro. There is no way to customize MIUI's system font to confirm though. I'm also sure that all major Chinese manufactures has their unique default font as well.

It's also possible that MIUI International ROM has some weird font issues, the font style looks less coherent than the mainland version. I will test this later on a mainland Chinese MIUI.
Comment 6 Tyson Tan 2022-01-14 04:28:43 UTC
I was able to get the fonts displayed correctly by using Configure Krita > General > Window > Custom fonts.