Issues with particular font types after EMF to PDF conversion

Hi Aspose support,

In out product we started to use EMF to PDF conversion via Aspose, and after some research with different ways and different Aspose libraries we found that the optimal one is to use Aspose.Words.dll to insert EMF picture into document, convert to Word document to PDF and then optimize PDF with Aspose.PDF.dll. In this case conversion speed and resulted PDF file size and quality are optimal.

Actually the base of the conversion method is taken from example: https://docs.aspose.com/words/net/convert-a-document/

But with this method we noticed problems with content in resulted PDF file.
Checked with:
Aspose.Words.dll v 19.7.0
Aspose.PDF.dll v19.7.0

Following font types are saved squeezed to PDF document: Bahnschrift Condensed, Bahnschrift Light Condensed, Bahnschrift SemiBold Condensed, Bahnschrift SemiBold SemiConden, MingLiU, MingLiU_HKSCS, MS Mincho, MS PMincho, PMingLiU.
01.png (508.0 KB)

The following font types are saved/converted not on the same line: Sitka Banner, Sitka Display, Sitka Heading, Sitka Small, Sitka Subheading, Sitka Text.
02.png (460.1 KB)

The text with Cambria Math font type shifts and overlaps another text.
03.png (543.9 KB)

The text with Segoe MDL2 Assets font type is shown with overlapping:
04.png (42.7 KB)

EMF files: ProblemEMF.zip (46.6 KB)

See project codes for more details:
EmfToPdf.zip (6.0 KB)

Please help with these problems.
Thanks in advance.

@licenses,

Thanks for reporting these problems. We tested the scenarios and have managed to reproduce the same problems on our end. For the sake of corrections, we have logged an issue in our issue tracking system. The ID of this issue is WORDSNET-18953. We will further look into the details of this issue and will keep you updated on the status. We apologize for your inconvenience.

@licenses,

We have logged following issues in our issue tracking system and also linked your thread to these issues:

  • Issues with “Bahnschrift” fonts. This font uses OpenType Font Variations. This feature is not currently supported by Aspose.Words. We have created WORDSNET-18994 for this feature.
  • Issues with MingLiU, MingLiU_HKSCS, MS Mincho, MS PMincho, PMingLiU. These fonts are specified in a strange way in EMF metafile. We have created WORDSNET-18995 for this issue.
  • Issue with Sitka Banner, Sitka Display, Sitka Heading, Sitka Small, Sitka Subheading, Sitka Text and issue with Cambria Math. These issues are related to inaccurate font vertical metrics calculation when rendering metafiles. We have fixed them. The fix will be included into the next release.
  • Issue with Segoe MDL2 Assets. This is a symbolic font and does not contain glyphs for Latin characters. Both Aspose.Words and MS Word use font fallback in this case. The difference between Aspose.Words and MS Word outputs is related to the different fallback font selection. We have created WORDSNET-18996 for this issue.

We will keep you posted on any further updates and let you know when the linked issues would be resolved in future.

Thanks a lot.

The issues you have found earlier (filed as WORDSNET-18953) have been fixed in this Aspose.Words for .NET 19.9 update and this Aspose.Words for Java 19.9 update.