use custom fonts with wkhtmltopdf

前端 未结 9 1480
难免孤独
难免孤独 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:37

    I personally had to set the font family on a div (I initially wanted a span)

    
    
    ...
    
    
    This is Century Gothic

提交回复
热议问题