Is there any way to force Aspose PDF to throw an exception if a substitute font is required? Take this XML for example:
<Text IsSpaced="true" LineSpacing="1.8">
<Segment FontName="Arial" FontSize="12">Line 1</Segment>
</Text>
<Text IsSpaced="true" LineSpacing="1.8">
<Segment FontName="Arial-Bold" IsTrueTypeFontBold="true" FontSize="12">Line 2</Segment>
</Text>
The font Arial-Bold gets silently changed to Times-Bold, I would much prefer it threw an exception then do this automatically so it's easier to correct especially if you use a memory stream so you don’t even see the XML file.
Background: Above XML generated by Aspose Words, from word document template I believe this was caused by copy & pasting some text from elsewhere which MS Word formatted with this strange font name. As you can see the attached word document opens fine.
Attached Copy of word document, xml produced, pdf produced