0
我正在使用NReco.PdfGenerator从html生成pdf。我想更改pdf的字体系列。我有一个自定义字体,并将其添加到HTML中,它不起作用。html to pdf font-face not working
<head>
<style>
@font-face {
font-family: 'Helvetica LT W01 Condensed';
src: local('Helvetica LT W01 Condensed'), url(../EmailTemplates/Helvetica-LT-W01-Condensed.woff2) format('woff2');
}
</style>
但是,如果我尝试添加从谷歌另一种字体,它的工作原理。
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans+Narrow" type="text/css">
你有什么想法?谢谢。
你可能也想在此问NReco人https://www.nrecosite.com/contact.aspx,然后也许你可以自己甚至提供了答案,如果他们作出回应,以帮助未来的访客找到这个quesiton 。 –