Table of Contents

How to Load Custom Fonts in a PDF

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 for your PDF template.

Option 1: Use a font file (woff, woff2, or a TTF file)

Step 1: First, please upload your font file(woff, woff2 or TTF) to a CDN

Step 2: Then in the Settings tab -> Custom Fonts tab, enter your font name, and URL(You may leave the Font Weight and Font Style empty).

Step 3: Then, in the PDF template designer, click to select a label and enter the font name, and press Enter

Option 2: Use CSS import style

You may use a font that is available on an online font library such as https://www.cdnfonts.com/

The following is a font named COCOGOOSE LETTERPRESS and we are going to use the font for a label component.

Step 1: In the Settings tab, paste the following import style into Custom CSS as follows:

@import url('https://fonts.cdnfonts.com/css/cocogoose-letterpress');

Step 2: Then, in the PDF template designer, click to select a label and enter the font name, and press Enter

Recent Posts

How to generate PDF documents with PHP

There are various libraries available to generate PDF documents with PHP such as FPDF, TCPDF, or DOMPDF. These libraries provide a wide range of features for creating PDF documents, such as setting page size, margins, fonts, and images.

In this article, I would briefly discuss some of these libraries along with some code snippets and show you how to generate a PDF document using PHP and CraftMyPDF.

Read More »

5 Ways to generate PDFs with C#

In this article, we will cover different options available, including using libraries such as iTextSharp and PdfSharp, cloud-based APIs such as CraftMyPDF, built-in classes in the .NET Framework like the PrintDocument class, and the Microsoft Office Interop library.

Read More »

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 »

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 »

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 »

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