我有代码
FontFactory.Register(Server.MapPath("includes/fonts/Rockwell-Light.ttf"));
StyleSheet style = new StyleSheet();
style.LoadTagStyle("div", "face", "customfont");
style.LoadTagStyle("div","encoding",BaseFont.CP1250);
foreach (IElement element in HTMLWorker.ParseToList(new StringReader("<div>" + getProductDescription((this.Product.Description != null) ? this.Product.Description : "") + "</div>"), style))
{
productDescCell.AddElement(element);
}
我的问题是无法将字体应用于代码