Hi,
I am trying to convert a Word document to PDF that contains Japanese characters on a linux machine.
The Word document includes the font Noto Sans CJK JP Regular and I verify that it is included in the document on the server with the following code
FontInfoCollection fontsInfo = doc.getFontInfos();
for (FontInfo info : fontsInfo) {
logger*** .debug("Font name: " + info.getName());
}
And I can see the following logging on the server
“Font name: Noto Sans CJK JP Regular”
When I save the document to a PDF I am getting the following warning from the
I am getting the following warning from the IWarningCallback callback
“ Font substitution: Font 'Noto Sans CJK JP Regular' has not been found. Using 'DejaVu Sans Condensed' font instead. Reason: closest match according to font info from the document.”
The font Noto Sans CJK JP Regular is an OpenType font downloaded from https://www.google.com/get/noto/
In this thread, OTF support in aspose, it is stated that OpenType fonts should be supported.
When I try the same on my Windows machine, where the font Noto Sans CJK JP Regular is installed, it works fine.
Aspose.Word version 18.9
RetrieveJapanese.zip (2.2 MB)