Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Here you should submit your bug reports with logcat.

The text is garbled on some devices

More
IP: 60.250.134.87 3 years 7 months ago #15760 by ericatudn
Hi.
The text of this book (154727_T.pdf) is garbled on some devices.
For example:
It looks good on Asus X01BDA (Android 9, Api Level 28), see ASUS_X01BDA_And_9.png.
But the text appeared garbled on Google Pixel 5 (Android 12, Api Level 32), see Google_Pixel5_And_12.png.
User has complained for this on Google Play,
Please help to solve this problem.
Thank you very much.
More
IP: 111.196.246.88 3 years 7 months ago #15761 by radaee
dear user:
the PDF file using lots un-embed fonts.
DFHeiStd-W3-ETen-B5-H
DFHeiStd-W5-ETen-B5-H
DFHeiStd-W7-ETen-B5-H
DFLiSongStd-W3-ETen-B5-H
DFLiSongStd-W5-ETen-B5-H
DFMingStd-W7-ETen-B5-H
DFMingStd-W9-ETen-B5-H

on some devices, CJK fonts may be OK.
on some devices, CJK fonts may not be OK.
it depends on font setting in Global.Init()// set default font for Traditional Chinese.
if (!setDefaultFont("CNS1", "Noto Sans CJK TC Regular", true) &&
!setDefaultFont("CNS1", "Noto Sans CJK TC", true) &&
!setDefaultFont("CNS1", "Noto Sans TC Regular", true) &&
!setDefaultFont("CNS1", "DroidSansFallback", true) && face_name != null)
setDefaultFont("CNS1", face_name, true);
if (!setDefaultFont("CNS1", "Noto Sans CJK TC Regular", false) &&
!setDefaultFont("CNS1", "Noto Sans CJK TC", true) &&
!setDefaultFont("CNS1", "Noto Sans TC Regular", false) &&
!setDefaultFont("CNS1", "DroidSansFallback", false) && face_name != null)
setDefaultFont("CNS1", face_name, false);
More
IP: 60.250.134.87 3 years 7 months ago - 3 years 7 months ago #15762 by ericatudn
Thanks for your reply.
In the code you provide, I found !setDefaultFont("CNS1", "Noto Sans CJK TC", true) repeat twice (passing true both.).
So I change the second setDefaultFont("CNS1", "Noto Sans CJK TC", true) to setDefaultFont("CNS1", "Noto Sans CJK TC", false) , just like other setDefaultFont() call in the same group.
And it seems solve the problem.
Is it a bug?
Can I fix it this way?
Will it cause other problem?
Last edit: 3 years 7 months ago by ericatudn.
More
IP: 111.196.246.88 3 years 7 months ago #15763 by radaee
thanks, and you are right.
we using worng codes copied from another line.
 
Time to create page: 0.398 seconds
Powered by Kunena Forum