Skip to content

Which fonts can be used in PDF files?

Generally, it is the template that defines how the PDF copy of an invoice, dunning reminder or account statement is rendered, defining its contents and layout.

The available fonts depend on the kind of template you use:

Standard Templates

A standard template renders its PDF with the JustOn PDF service, which allows embedding and using any font and style you want. For details, see Embedding Assets.

Fonts are embedded as TTF only (static TrueType; variable fonts are not supported). Without an embedded font, the built-in Noto families apply – Noto Sans, Noto Serif and Noto Sans Mono, with symbol, emoji and math fallback.

Info

On the earlier v2 engine, the JustOn PDF service defaults to Chromium's built-in fonts and embeds web fonts (WOFF/WOFF2) via @font-face. A web font that worked there must be re-supplied as a TTF data: URI. For details, see Fonts.

Note

The Liquid file that JustOn Billing & Invoice Management delivers is part of the product and is supported as such. Once you modify it, you are doing custom development: this requires profound skills in web development techniques, in particular, the Liquid template language and Cascading Style Sheets (CSS). Issues arising from your own modifications may not be covered by the general maintenance and support contract for JustOn Billing & Invoice Management.

Classic Templates

A classic template renders its PDF with Salesforce's built-in Visualforce PDF rendering. The available fonts are therefore limited to Arial Unicode MS, Helvetica, Times and Courier (see Fonts Available When Using Visualforce PDF Rendering in the Salesforce Help).

To use one of these fonts in your template – for example, Times – add the following CSS code to the Custom CSS field:

body {
  font-family: "Times";
}

For details, see Modifying Classic Template CSS.

Note

If you need to print characters beyond the (standard) Latin characters, you must select the checkbox Use Unicode Font (see Adjusting Invoice Formatting). This immediately enables the font Arial Unicode MS, which is the only font that supports extended character sets and multibyte characters.

Be aware that using the Unicode font impedes bold and italic text formatting.