Normal paragraphs use type: "text". Secondary/smaller text uses type: "text2" — useful for footnotes, captions, or fine print.
Copy
{ "type": "text", "text": "This is a normal paragraph with body text." }{ "type": "text2", "text": "This is secondary text, typically rendered smaller." }
All text element types (h1–h6, text, text2) share the same properties:
Property
Type
Required
Default
Description
type
string
Yes
—
Element type: "h1", "h2", "h3", "h4", "h5", "h6", "text", or "text2"
id
string
No
auto
Unique identifier. Auto-generated if not provided. Max: 100 chars.
text
string
Yes
—
Text content. Supports inline formatting (see below). 1–5000 chars.
fontFamily
string
No
"Arial"
Font family override. Max: 100 chars.
fontSize
number
No
11
Font size in pt (6–72).
fontWeight
string
No
"normal"
"normal" or "bold"
align
string
No
"left"
Alignment: "left", "center", "right", "justify"
color
string
No
"#000000"
Text color in hex (#RGB or #RRGGBB).
anchor
string
No
—
Anchor ID for internal references (headings only, ignored on text/text2). Pattern: ^[a-zA-Z][a-zA-Z0-9_-]*$. Max: 100 chars.
spacing
object
No
—
Spacing override with before and after in pt (0–100).
The defaults shown above ("Arial", 11, "left", etc.) are the built-in fallbacks. In practice, values are resolved with a three-level cascade: element property → element style (from defaults.styles.h1, defaults.styles.text, etc.) → global defaults (defaults.fontFamily, defaults.fontSize, defaults.color) → built-in fallback.
The text property supports inline formatting using an extended Markdown-like syntax. This is not standard Markdown — some syntax elements are Autype-specific.
Automatically shows the target’s caption with numbering (e.g., “Figure 1: Architecture”)
[Figure {num}](#fig-arch)
Template
Replaces {num} with the target’s number (e.g., “Figure 1”)
[see here](#fig-arch)
Custom
Shows the provided text as a clickable link (“see here”)
Anchor IDs must be unique across the entire document. Duplicate anchors always cause a validation error. Broken references (pointing to non-existent anchors) cause errors only in strict mode (?strict=true).
The pageBreakBefore property in a heading style forces a page break before every instance of that heading level — useful for starting each chapter on a new page.
The following fonts are guaranteed to be available in the rendering engine. Use these font family names in fontFamily properties.
Using a font that is not installed in the render container will cause a silent fallback to the default font (Arial). Always use one of the listed fonts to ensure consistent output.
MS Office compatibility: Calibri documents render correctly using Carlito (metrically identical). Cambria documents render correctly using Caladea (metrically identical). The render engine also has hundreds of Noto language-specific variants (e.g., Noto Sans CJK JP, Noto Sans Arabic, Noto Serif Bengali) installed for international document support.