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

Free Support Forum - aspose.com

Will Aspose consider the font mentioned in HTML style?


This is related to Aspose.Words for Java.

We are trying to insert below HTML into word document. But the font is not getting changed as mentioned.

Sample Text

Is it a bug or should I try different HTML tag to change the font?



<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. The problem occurs because, currently, Aspose.Words does not support inheriting styles from parent elements.

Currently, Aspose.Words expects that font formatting is set in element, formatting of paragraph – in


elements etc…

I linked your request to the appropriate issue, you will be notified as soon as it is resolved.

In your case your HTML should look like the following:



<table width="600px" >


<td width="500px">

<span style="font-family: helvetica;"><strong>Sample Text</strong></span>






Best regards.

Thanks for the workaround solution. It works for us now. Looking forward to inheritance feature in HTML insert.

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

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