marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.55k stars 544 forks source link

Custom font not working #688

Open valenciaHQ opened 2 years ago

valenciaHQ commented 2 years ago

Hi! im trying to use:

 @font-face {
        font-family: "Circular";
        src: url("templates/circular.woff2") format("woff2"),
          url("templates/circular.woff") format("woff"),
          url("templates/circular.ttf") format("truetype");
      }

Path is ok, fonts are not being displayed at all. Any clues?

lycpan233 commented 3 months ago

Having the same problem

any way out ?