PDF Template and Custom WebFonts

Is it possible to use custom webfonts in a PDF template? I’ve tried adding @font-face in the css with the fonts installed on the server, however they aren’t showing on the generated PDF?

Thanks,
Chris

No it’s not possible by default. Because custom fonts are not loaded by the PDF engine (mPDF).
But with some tweaking you can make the font available for the engine. Read the docs here: http://mpdf1.com/manual/index.php?tid=453

Thanks for the advice.
It seems only certain TrueType fonts work. As yet I can’t figure out why some do and some don’t.

Solved it !

In the config_fonts.php of mPDF the font name (e.g. “asap”) in the array must be lower case.

"asap" => array(
    'R' => "Asap-Regular.ttf",
    'B' => "Asap-Bold.ttf",
    ),