PDF Conversion using Corbel font renders numbers as subscript

Converting the attached Word, leads to poor format in the resulting PDF

image.png (8.4 KB)
Left: the PDF created using Aspose
Middle: the PDF created using MS Word
Right: the original Word

Any hints?

Files are attached:
Aspose.zip (834.2 KB)

@Horst

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-19582. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@Horst

It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-19582) as ‘Not a Bug’.

The OpenType typography feature is applied to the digits while rendering document. Aspose.Words does not handle this feature by default. To render the digits correctly, you need to enable the HarfBuzz shaping engine. This requires installing the Aspose.Words.Shaping.Harfbuzz nuget package and adding an extra line of code as shown below.

Document doc = new Document(MyDir + "Doc1.docx");
doc.LayoutOptions.TextShaperFactory = Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance;
doc.Save(MyDir + "19.11.pdf");

We have attached the output PDF with this post for your kind reference.
19.11.pdf (36.3 KB)