While Converting docx to HTMLFixed then font not getting as per word document
Like AvantGarde font changed to times new roman and FranklinGothic font changed to Cambria.
Snippet :
Aspose.Words.Saving.HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
options.AllowEmbeddingPostScriptFonts = true;
options.PrettyFormat = true;
options.ShowPageBorder = true;
options.ExportEmbeddedCss = true;
options.ExportEmbeddedFonts = true;
options.ExportEmbeddedImages = true;
options.ExportEmbeddedSvg = true;
options.UseHighQualityRendering = true;
//options.UseTargetMachineFonts = true;
//options.FontFormat = ExportFontFormat.Ttf;
//options.SaveFontFaceCssSeparately = true;
Document doc = new Document(@"C:\\Users\\achaudhari\\Desktop\\font_check.docx");
Document outputDoc = (Document)doc.Clone(true);
outputDoc.FontInfos.EmbedTrueTypeFonts = true;
outputDoc.FontInfos.EmbedSystemFonts = true;
outputDoc.FontInfos.SaveSubsetFonts = true;
outputDoc.Save(@"C:\\Users\\achaudhari\\Desktop\\FontCheck.html", options);
Font_issue.zip (76.3 KB)