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.