use custom fonts with wkhtmltopdf

Since it is a Google Web font you need not to write @font-face in you style sheet just use following link tag in your source code:

<link href="" rel="stylesheet" type="text/css">


 <style type = "text/css">
    p { font-family: 'Jolly Lodger', cursive; }

will work.

By the way, in your code you are defining @font-face family as font-family: Jolly; and using it as p { font-family: 'Jolly Lodger', cursive; } that is wrong, because it’s mismatching font-family name.

Leave a Comment