Closed liguobao closed 7 years ago
Hi,
I may not understand you correctly. But including (embedding) the font as part of wkhtmltoxsharp is a bit out of scope of this proyect. As this font is not something every user of this component may want/need.
What exactly are you asking for?
Yes,I want to embedding "Microsoft YaHei" font to the project and set as defualt. At present,"Simsun" of the font is default wkhtmltoxsharp,but my web font is "Microsoft YaHei". If my web contains the font ,the page site is too big.so... Thanks and Regards.
I am afraid, the fonts you think are embedded by WkHtmlToXSharp, are in fact embedded by WebKit (or wkhtmltopdf), or simply installed by default at the operating system you are running this code on top of.
We (WkHtmlToXSharp) do not embed any font, or any additional rendering resource, aside from those already supplied upstream.
My computer has installed YaHei of the font but the font is not enabled on convert to pdf.So I want to embed the font to WkHtmlToXSharp .
Hi,Pruiz.thanks your project very mach! WkHtmlToXSharp is very good! I've got some problems on with WkHtmlToXSharp, My HTML like the document:
<h1 style='font-family:Microsoft YaHei;'>I am Microsoft YaHei;...</h1>
The HTML font is “Microsoft YaHei”,but the PDF font is “SimSun”,eg:I find some people discuss the problem on stackoverflow:use-custom-fonts-with-wkhtmltopdf.
Many people suggest use “@font-face”,eg:
But Convert to pdf too slow because “Microsoft YaHei”(MSYH.TTC) more than 20M.
So,I want to add "Microsoft YaHei" to WkHtmlToXSharp project.
What should I do?
Thanks and Regards.