How to conserv the font family of the “FusionChamp” thats mean my fields in the document have Centry gothic 11 as font family and size , but after exporting to word i noticed that the font changed to New Roman 10 how can make it Inchangeable ?
Thanks for your inquiry. Aspose.Words should preserve the fonts during processing; could you please attach your input and output Word documents along with conversion code here for testing? I will investigate the issue on my side and provide you more information.
Thanks for the additional information. I think, you can use the following code snippet to be able to merge the formatting that is specified inside HTML string with the formatting of MergeField:
Document doc = new Document(@"C:\test\mf.docx");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToMergeField("mf", false, false);
InsertHtmlWithBuilderFormatting(builder, "plain html string");
// InsertHtmlWithBuilderFormatting(builder, "formatted html string");
builder.MoveToMergeField("mf");
doc.Save(@"C:\test\out.docx");
You can find code for InsertHtmlWithBuilderFormatting function in the attachment. I hope, this helps.