Hi, I'm using Aspose.Pdf 9.1. I have the following code below but when I export to PDF the bold characters do not appear. Is there a way to support multiple fonts names or another solution to getting this to work with still using "Arial Unicode MS".
I need to use Arial Uniode MS to support for Chinese characters and still support bold/italics.
var htmlString = "<html><body><div><span style=\"font-size:18px;\">NONBOLD <strong>BOLD</strong></span></div></body></html>";
var text = new Text(htmlString);
text.IsHtmlTagSupported = true;
text.IsHtml5Supported = true;
text.TextInfo.FontName = "Arial Unicode MS";
text.IfHtmlTagSupportedOverwriteHtmlFontNames = true;
document.Sections[0].Paragraphs.Add(text);
document.SetUnicode();
I need to use Arial Uniode MS to support for Chinese characters and still support bold/italics.
var htmlString = "<html><body><div><span style=\"font-size:18px;\">NONBOLD <strong>BOLD</strong></span></div></body></html>";
var text = new Text(htmlString);
text.IsHtmlTagSupported = true;
text.IsHtml5Supported = true;
text.TextInfo.FontName = "Arial Unicode MS";
text.IfHtmlTagSupportedOverwriteHtmlFontNames = true;
document.Sections[0].Paragraphs.Add(text);
document.SetUnicode();