Node-html-pdf: Loading custom fonts

Created on 19 Feb 2018  路  2Comments  路  Source: marcbachmann/node-html-pdf

I'm using Persian fonts like IRANSANS. can I import my custom font ?

Most helpful comment

I had the same problem and solved it by using file:// in my html code, for example, I imported my font-face declration css file in them main like this:
<style> @import url("file:///home/myname/projects/myprojectname/public/font/IRANSansWeb/index.css"); </style>
the base option doesn't word for me.

All 2 comments

I had the same problem and solved it by using file:// in my html code, for example, I imported my font-face declration css file in them main like this:
<style> @import url("file:///home/myname/projects/myprojectname/public/font/IRANSansWeb/index.css"); </style>
the base option doesn't word for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aminjoharinia picture aminjoharinia  路  4Comments

tsp1996 picture tsp1996  路  5Comments

Messilimeng picture Messilimeng  路  4Comments

jimit-hothi picture jimit-hothi  路  4Comments

rayax86 picture rayax86  路  5Comments