Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.
  • Page:
  • 1
  • 2

TOPIC:

CJK fonts are garbled in Android6 7 years 11 months ago #10610

  • yimamura
  • yimamura's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
In Android6, the system font has been changed to NotoSans.
Therefore, we make the following modifications in order to take advantage of Japanese fonts.

Global.java
fontfileListAdd("/system/fonts/NotoSansJP-Regular.otf");
・・・
if( !setDefaultFont( "Japan1", "Noto Sans JP Regular", true )){ //Add
if(!setDefaultFont("Japan1", "DroidSansFallback", true) && face_name != null)
setDefaultFont(null, face_name, true);
}
}
if( !setDefaultFont( "Japan1", "Noto Sans JP Regular", false )){ //Add
if(!setDefaultFont("Japan1", "DroidSansFallback", false) && face_name != null)
setDefaultFont(null, face_name, false);
}
}

A result, Japanese font of NotoSans was displayed. However, it will not make sense character. Than there is a problem in CMap?

Tried in RDPDFReader that comes with the SDK.
I think that is happening, in all PDF that FONT is not embedded.
I think that it is the same state, Chinese, Japanese, Korean, CJK-Font at all.

Please Log in or Create an account to join the conversation.

CJK fonts are garbled in Android6 7 years 11 months ago #10611

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
May you provide one of you pdf file?
We will check it on some Android 6.0 devices.

From earlier check, it seems that font isn't from the official google repository www.google.com/get/noto/

Which device are you testing?

Please Log in or Create an account to join the conversation.

CJK fonts are garbled in Android6 7 years 11 months ago #10612

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
I confirm the NotoSansJP-Regular.otf, even if it's not signed by Google, is distributed on Nexus devices too.

Please, provide us on of your files.

Please Log in or Create an account to join the conversation.

CJK fonts are garbled in Android6 7 years 11 months ago #10614

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
attached a new version of Global.java with the edits regarding Noto Sans font.
We have checked it with some japanese pdfs and it works properly.

We are waiting for your pdf to continue the test.

Please check this new version and let us know if it's ok.

File Attachment:

File Name: Global.java
File Size:30 KB
Attachments:
The following user(s) said Thank You: yimamura

Please Log in or Create an account to join the conversation.

CJK fonts are garbled in Android6 7 years 11 months ago #10617

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
we have done some deeper tests, so we suggest you to don't use the Global.java I sent you before, because NotoSans font doesn't have all the charset for all the Oriental languages.
At the moment we have the best performaces with DroidSansFallback.
Today we will publish a new release candidate version of the library that first uses DroidSansFallback and then, if this is not present, uses NotoSans.

Please Log in or Create an account to join the conversation.

CJK fonts are garbled in Android6 7 years 11 months ago #10620

  • yimamura
  • yimamura's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Thank you.
I've tried Global.java shown, it is the same result.

Attach the PDF file and some of the capture.

*sample1.jpg
fontfileListAdd("/system/fonts/NotoSansJP-Regular.otf");

*sample2.jpg
RadaeePDFReader ver7.1.6 (GooglePlay)

*sample3.jpg
Correct display - Japanese system font of Android4.x and 5.x
fontfileListAdd("/mnt/sdcard/Download/MTLmr3m.ttf");
github.com/android/platform_frameworks_b...ee/master/data/fonts

Are the three terminal was tried.
Samsung Galaxy S7 edge (Android 6.0.1)
HTC Nexus 9 (Android 6.0.1)
LG Nexus 5X (Android 6.0.1)
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by yimamura.
  • Page:
  • 1
  • 2
Powered by Kunena Forum