Thai Fonts become not redeable after open docx file using Aspose Word

Hi

we have a docx file with custom font after open it using Aspose word and sending it to the printer the Thai text becomes not clear for reding it

we are do something like :

AsposeWordsPrintDocument awPrintDoc = new AsposeWordsPrintDocument(document)
DocPrintJob printJob = service.createPrintJob();
SimpleDoc simpleDoc = new SimpleDoc(awPrintDoc, pageableFlavor, null);
printJob.print(simpleDoc, printRequestAttributeSet);

for aspose use .zip (75.0 KB)

we are using aspose word 20.8 and i tried it using the latest aspose withe the same results

@moshelatin

We have tested the scenario and noticed that the Thai characters do not render correctly. Please check the attached image. Issue detail.png (124.4 KB)

For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-22322. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

If you are facing different issue, please share the screenshot of problematic sections of output.

@moshelatin

We have closed this issue (WORDSNET-22322) as ‘Not a Bug’. You need to enable open type features to get the correct output. Please read following article for more detail.

Document document = new Document(MyDir + "sample.docx");
document.getLayoutOptions().setTextShaperFactory(com.aspose.words.shaping.harfbuzz.HarfBuzzTextShaperFactory.getInstance());
                
AsposeWordsPrintDocument awPrintDoc = new AsposeWordsPrintDocument(document)
DocPrintJob printJob = service.createPrintJob();
SimpleDoc simpleDoc = new SimpleDoc(awPrintDoc, pageableFlavor, null);
printJob.print(simpleDoc, printRequestAttributeSet);