Some Fonts Are Marked for Substitution Even If They Are Loaded Manually

  1. I have the next fonts in the presentations, but they are being substituted by other fonts:
    Bookshelf Symbol 7
    Marlett
    HoloLens MDL2 Assets
    MS Outlook
    MT Extra
    Segoe MDL2 Assets

I tried to load these files manually but the result is the same.
When converting these presentations to PDF with Aspose.Slides and MS PowerPoint the results are different as well.
I attached the presentations and the fonts.

  1. I also have a font with OpenType font variations (Bahnschrift). It’s being substituted as well.
    As I understand, for these fonts only the default one is supported, like in Aspose.Words. Though the behavior is a bit different, the variations are substituted by the Arial instead of the Bahnschrift default variant.
    Are there any plans for supporting other fonts/variants in a package?

Code sample:

FontsLoader.LoadExternalFont(File.ReadAllBytes(fontPath + @"FontLoadIssue2\BSSYM7.TTF"));
FontsLoader.LoadExternalFont(File.ReadAllBytes(fontPath + @"FontLoadIssue2\marlett.ttf"));

FontsLoader.LoadExternalFont(File.ReadAllBytes(fontPath + @"FontLoadIssue\holomdl2.ttf"));
FontsLoader.LoadExternalFont(File.ReadAllBytes(fontPath + @"FontLoadIssue\MTEXTRA.TTF"));
FontsLoader.LoadExternalFont(File.ReadAllBytes(fontPath + @"FontLoadIssue\OUTLOOK.TTF"));
FontsLoader.LoadExternalFont(File.ReadAllBytes(fontPath + @"FontLoadIssue\segmdl2.ttf"));

var pr = new Presentation(inPath);

foreach (var fontSubstitution in pr.FontsManager.GetSubstitutions())
	Console.WriteLine("{0} -> {1}", fontSubstitution.OriginalFontName, fontSubstitution.SubstitutedFontName);

pr.Save(inPath + ".pdf", SaveFormat.Pdf);

I use Aspose.Slides.dll 25.3.0.0 and Microsoft® PowerPoint® for Microsoft 365 MSO (Version 2501 Build 16.0.18429.20132) 64-bit.
test44.zip (267.6 KB)

@licenses,
Thank you for reporting on the issue. I’ve reproduced the problem with the font substitutions when converting the PowerPoint presentations to PDF documents.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44897

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Could you please share the font and a sample presentation? We will then investigate the case and consider implementing support for the fonts you are talking about.

FontsManager.GetSubstitutions() list mentions the next fonts:
Bahnschrift Light Condensed
Bahnschrift Light SemiCondensed
Bahnschrift SemiBold Condensed
Bahnschrift SemiBold SemiConden
Bahnschrift SemiLight Condensed
Bahnschrift SemiLight SemiConde

But when converted to *.pdf there is also a visible difference in comparison to MS PowerPoint for the next fonts:
Bahnschrift Condensed
Bahnschrift SemiBold
Bahnschrift SemiCondensed

test45.zip (244.8 KB)

@licenses,
Thank you for the additional information.

I was unable to reproduce the problem for the Bahnschrift SemiBold font. Could you please check the issue carefully again for this font? If the issue persists, please also share the following:

  • OS version on which the code was executed
  • .NET target platform in your application project
  • output PDF file
  • screenshot of the PowerPoint slide with the font

The upper browser on the screenshot (bahnschrift.pptx.pdf) of the document generated by Aspose.Slides.

Windows 10 Enterprise 22H2 19045.5247
.Net Framework 4.8.1

test46.zip (253.1 KB)

@licenses,
Thank you for the additional information. I will get back to you as soon as possible.

@licenses,
Thank you for your patience. I’ve added the additional files and information to the ticket SLIDESNET-44897.