Logo
NeoArc Studio

PDF Typography and Font Control

Control every typographic detail in PDF output: font family, size, weight, line height, letter spacing, and colour for body text, each heading level, and code blocks. Typography settings are independent from web styling and persist across publishes.

PDF typography gives you per-element control over how text renders in your PDF documents. Set global defaults for the entire document, then override specific elements like headings, body text, or code blocks with their own font family, size, weight, line height, letter spacing, and colour. Typography settings apply exclusively to PDF output and do not affect your published website.

Global Defaults

Global defaults apply to all text in the PDF document unless overridden by a per-element setting:

PropertyDescriptionDefault
Base Font FamilyFont family applied to all text elementsSystem default
Base Font SizeBase size for body text (CSS value: rem, px, or pt)Inherited from theme
Base Line HeightLine spacing multiplier applied to all text1.6
Base ColourText colour applied when per-element colour is empty (hex value)Inherited from theme

Per-Element Overrides

Override any global default for specific elements. Each element can have its own complete set of typographic properties:

ElementDescription
BodyParagraphs, list items, table cells, and other body text
H1Top-level headings
H2Second-level headings
H3Third-level headings
H4Fourth-level headings
H5Fifth-level headings
H6Sixth-level headings
CodeInline code and code blocks

Each element supports these properties:

PropertyDescriptionExample Values
fontFamilyFont family name (must be installed on the system)Georgia, Garamond, Calibri
fontSizeFont size as a CSS value1rem, 16px, 11pt
fontWeightNumeric weight from 100 (thin) to 900 (black)400 (regular), 700 (bold)
lineHeightUnitless line spacing multiplier1.4, 1.6, 1.8
letterSpacingSpace between characters as a CSS value0.02em, 0.5px
colorText colour as hex value (empty inherits from global)#333333, #1a1a2e
marginTopSpace above (headings only) as a CSS value1.5rem, 24px
marginBottomSpace below (headings only) as a CSS value0.75rem, 12px

How Typography is Applied

Example Configurations

Three common typography setups for different document types:

Configuration Persistence