There is an issue with some of the texts having the last character followed by a space for the Japanese font ‘msgothic’ on linux.
issue is reproducible on Windows if I use Aspose Word 15.11.0.0
-
Although the issue looks FIXED in latest Aspose jar (version 22.12), the issue is STILL OCCURING on Java server on linux box.*
Sample code, word template and output file has been attached
TestCode.zip (196.6 KB)
Files Details :
- Linux machine output : Linux_Output.png
@akondewar Unfortunately, I cannot reproduce the problem on my side. I have used the following code for testing:
Document doc = new Document("/temp/in.docx");
doc.setFontSettings(new FontSettings());
doc.getFontSettings().setFontsSources(new FontSourceBase[] { new FolderFontSource("/temp/fonts/", true)});
doc.setWarningCallback(new FontSubstitutionWarningCollector());
doc.save("/temp/out_linux.pdf");
/temp/fonts/
folder contains only MS Gothic
font. Here is the output PDF document produced in Linux using the latest 23.6 version of Aspose.Words for java: out_linux.pdf (22.7 KB)