We have to support different languages in docx format, and as a sample we write different languages to a document as below and saving the document in docx format.
when we open the document these fonts are not resolving and text displaying as squares.
We are trying to resolve it by using different options like setting True Fonts by using FontSettings and Embed System Fonts etc. But nothing helped us.
Please suggest the approach that we needs to use to build a word document in docx format with different languages.
Complete Code has been attached hereSampleCode.zip (17.0 KB)
Note: We are using aspose-words-18.8-jdk16.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.write(“Punjabi (India): ੂਪਾ ੌਹਗਮਕ ਵੀਦੈਲ ਿਦੰ ਰਹਸਜਾ੍ ਦਨਾੀ ੂਪਾ ਤੋਬ ੍ਦੁ”);
builder.write(“Gujarati (India): ૂપા ૌહગમક વીદૈલ િદં રહસજા્ દનાી ૂપા તોબ ્દુ”);