Skip to content
Start free

Fonts

A font sets a text style. It goes on the page (the default for everything), a text box, a table’s header or rows, and a page number.

PropertyDescription
familyOne of the families below
sizeIn points, up to 400
color#rrggbb
lineHeightA multiple of the size, 0.5 to 5

All four are optional. A text box’s font is combined with the page’s, so set only what’s different. Without a page font, text is 10 point Liberation Sans in black, with a line height of 1.2. Inside the text, marks change the family, size and color of single words.

{ "family": "Lato", "size": 11, "color": "#222222", "lineHeight": 1.4 }
KindFamilies
Sans serifLiberation Sans (the default, sized like Arial), Roboto, Open Sans, Lato, Poppins, Public Sans, Questrial, DejaVu Sans
SerifLiberation Serif (sized like Times New Roman)
MonospaceLiberation Mono (sized like Courier New), Inconsolata, Roboto Mono, Ubuntu Mono
HandwritingDancing Script, Caveat, Great Vibes, Sacramento, Satisfy, Cookie

Write a family’s name as it’s written here, with its spaces: "Open Sans". DocSpring draws every PDF with its own copy of each font, so the PDF looks the same wherever it’s made.