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 Overlay Text on an Image in HTML and CSS

CraftMyPDF’s Image Generation API: Now, if coding isn’t really your thing or you just want a quicker solution, CraftMyPDF has got you covered. Their API is designed to make the process of generating images with text overlays a breeze.

Read More »

Generate PDFs in C# with 8 Libraries (2024 Updated)

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 documents with 4 Popular PHP Libraries (Updated 2024)

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 »

How to Dynamically Create a Trackable QR Code in a PDF Without Coding

In this article, we’ll explore a range of topics including free QR code tools, tips and tricks for using QR codes effectively, and various use cases.

In addition, we will guide you through automating the generation of dynamic QR codes using Zapier, Airtable, and CraftMyPDF’s PDF or image generation APIs.

Read More »

A Guide to Generate Barcodes and QRcodes

In this article, we’ll explore barcodes and QR codes, discussing their applications and how they’re used in various scenarios. I’ll guide you through the steps to create these codes using Python and Node.js. Additionally, we’ll look at how to generate barcodes and QR codes with CraftMyPDF, which supports REST API and integrates seamlessly with no-code platforms like Zapier, Make.com, and Bubble.

Read More »
Copyright ©2024 CraftMyPDF.com

Email us at [email protected] for support