use custom fonts with wkhtmltopdf

前端 未结 9 1458
难免孤独
难免孤独 2020-12-03 01:12

I am trying to use custom fonts in my PDF generated with wkhtmltopdf. I read that you can\'t use google webfonts and that wkhtmltopdf uses truetype .ttf file. Can anyone con

9条回答
  •  情歌与酒
    2020-12-03 01:30

    After doing all the workarounds suggested (some which actually worked), I came across a way easier solution:

    
    

    You can simply use the @import notation to include the font.

提交回复
热议问题