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

Free Support Forum - aspose.com

Font changed after the replacement


We have a function which can load the template Word file into a byte array , and replace the spaciel variables( like <IND_NAME> , <IND_SEX> etc.) by the real data in the document, and of course export the document at the end.

It works fine except a problem of Font, it seems that some fonts are not supported in Aspose?
If we use the “Times New Roman”, “Arial”, everything works perfectly, but if we change the font to “Calibri” for example, it export the data with font “Times New Roman”.

Is there a way to solve this problem ?


Hi Kun,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  1. Your template Word document you’re getting this problem with.
  2. Aspose.Words generated output Word document which shows the undesired behavior.
  3. Please create a standalone runnable simple console application that helps us reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information.

Best regards,