icon

How to Load Custom Fonts in a PDF

Table of Contents

PDF format is capable of embedding fonts. CraftMyPDF not only supports Google fonts but also supports custom fonts.

In this short tutorial, we are going to guide you to use your own custom fonts with CSS style for your PDF template.

**Note:

Now we support Custom Fonts in the Settings tab, you do not need to use CSS for custom fonts anymore.

Step 1 – Upload a font or use a CDN font

You may upload your custom fonts to online storage or use a font that is available on CDN such as https://www.cdnfonts.com/

Step 2 – Navigate to Settings

In the Additional CSS field, paste the CSS snippet in the text field.

Please make sure that the custom font starts with “https://“. Remember to click on the Apply button.

(i) If you are using a font on cdnfonts.com, please make sure to change the protocol to https:// and use @import to load the font CSS.

(ii) In addition, If you are using a custom font in your own CDN, you have to use the @font-face CSS at-rule to specify the location.

Step 3 – Changing the font property

In the PDF template designer, click to select a label and enter the font name, and press Enter

Recent Posts
blog

How to generate PDF invoices with Zapier

With PDF invoices, it’s easier to send invoices directly to clients without needing paper copies.

In this article, I would be showing you how to generate PDF invoices with Zapier and also help you understand the benefits of doing this. Let’s get to it!

Read More »
blog

Best-performing Banner Ads Sizes in 2023

Choosing the most appropriate banner for your company isn’t always easy. There are lots of things to consider such as the color, size, type of banner, and so on. This could be a little problematic if you have no knowledge of the different types of banner ads but don’t worry, that’s why I’m here.

Read More »
blog

How to create PDF invoices with Bubble.io

In this tutorial, we will create line items for an invoice template.

The takeaway of the tutorial is to build JSON with our Bubble plugin actions Thing(s) to JSON and Build JSON for complex JSON that consists of line items(an array). Then, the JSON will be used for generating the dynamic PDF documents.

Read More »
blog

How to generate PDFs with Retool

Retool is a low-code platform that is used by businesses to build applications faster, these applications include creating admin panels, dashboards, and even PDFs.

This tutorial is going to guide you on creating PDFs with Retool.

Read More »
Copyright ©2023 CraftMyPDF.com

Email us at [email protected] for support