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 。 –