We have a large application successfully using ABCPDF.NET with HTML Styled text. We're accustomed to adding text using fonts not installed in Windows, but stored in files elsewhere in the filesystem -- we do this so each user can upload their own fonts and use them with the output. We use the AddFont call to embed the font in the Doc, then reference the font in a tag for HTML Styled text with the AddText call.
We're starting to look at using AddImageUrl / AddImageHTML to get more HTML power. Fonts are therefore a sticking point. It seems that both the MSHTML and Gecko engines will only see the same font list that Windows will.
I tried this code to see if @font-face will work with Gecko:
Sub Main
dim pdf as new Doc
with pdf.HtmlOptions
.Engine = EngineType.Gecko
.FontEmbed = true
.FontSubstitute = false
.FontProtection = false
end with
pdf.AddImageUrl("http://www.w3.org/2010/09/web-on-tv/slides/1009-tv-web-chaals/demos/webfonts.htm")
pdf.Save("c:\temp\a.pdf")
End Sub
But it won't. Is there anything else I can do?
This is with ABCpdf.NET 8.1.0.7. Would upgrading to 9 or a later release of 8 help at all?