We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

FontSettings.addFontSubstitutes and WarningCallback

Hello,
Could you please answer for little question:
As I understood if we once set FontSettings.addFontSubstitutes(“originalFont”, “newFont”) warning message during substitution of originalFont by newFont is not caught by warningcallback, right?
Is it feature or there are any plans to fix it?

Hi Akane,

Generally warning callback can be used to find which fonts are substituted with the missing fonts. When you explicitly set font substitutions then there is no need to check it. Do you want Aspose.Words to catch font substitution even if the font substitutions are explicitly set?

Best Regards,

Hello,
Thank you for your reply.
Let’s see…
We set FontSettings.addFontSubstitutes explicitly, but it means that we want to use exactly these fonts for substitution, we actually don’t know whether it is used or not actually in document (for example if converted document doesn’t have any missing fonts)
And as I understand WarningCallback should show message every time when fonts are substituted, and never mind whether this substitution was set through FontSettings. How do you think?

So, yes. I suppose it makes sense if Aspose.Words would catch font substitution even if the font substitutions are explicitly set.
Best Regards, Akane

Hi Akane,

A new feature request to support this feature has been logged into our issue tracking system as WORDSNET-11686. We will keep you updated on this issue in this thread.

Best Regards,

Thank you very much. Looking forward for this.

The issues you have found earlier (filed as WORDSNET-11686) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Hi,


Please note that the following changes that we have made as per WORDSNET-11686:

Substitution case

Warning text

Previous warning text

Font substitution per AltName from document FontInfos.

"Font '' has not been found. Using '' font instead. Reason: alternative name from document."

No warning

Font substitution per FontSettings.DefaultFontName.

"Font '' has not been found. Using '' font instead. Reason: default font setting."

"Font '' has not been found. Using '' font instead."

Font substitution per first available font.

"Font '' has not been found. Using '' font instead. Reason: first available font."

"Font '' has not been found. Using '' font instead."

Font substitution per specified font substitutes.

"Font substitutes: '' replaced with ''."

No warning

Font substitution when saving to image

"GDI+ can't load '' font. Using '' font instead."

"GDI+ doesn't support OpenType fonts with PostScript outlines. '' font has been substituted."


Please also see breaking changes in FontSettings class.

Best regards,