We wrote a series of posts on using Google fonts with DocRaptor a while back. This has proven to be a popular series for us, and we’ve often heard from users who want to add Typekit fonts to their DocRaptor PDFs. This is easy enough to do, provided you have a DocRaptor account, a Typekit account, and the proper license for the font you want to use.
First up, you’ll need to add any domain you want to use to create a PDF with Typekit fonts to your kit settings. This is the referrer that Typekit expects to find to apply the fonts from your kit correctly. For example, here’s how we’ve set this to use Myriad Pro on DocRaptor:
This parameter must pass a correct URL, otherwise your Typekit fonts won’t actually be applied.
Your other option is to send us an existing URL via document_url. No need to pass referrer in this case, as the URL you’re sending us will already be referenced in your Typekit settings.
And you’re done! Your PDFs never looked so good.
Disclaimer: DocRaptor is not affiliated with Adobe Products in any way, and you must have the proper license to use any Typekit font with DocRaptor. Here’s some more information about Typekit font licensing: Typekit font licensing