Rich Text & Inline Styling

Style every word.
Render with precision.

Apply bold, italic, color, superscript, subscript, and more to individual characters within a single text frame. From pharmaceutical labels to marketing banners — generate typographically rich images via API.

Three ways to apply inline styles

Whether you prefer code, URLs, or a visual editor — rich text works everywhere.

textRuns API Array

Pass an array of text run objects via the REST API. Each run specifies its own text content and style overrides — bold, italic, color, font, size, superscript, and more. Full programmatic control for backend-driven workflows.

"textRuns": [ { "text": "Bold ", "bold": true }, { "text": "and ", "color": "#666" }, { "text": "colored", "color": "#e74c3c" } ]

Dynamic URL Query Parameters

Embed rich text styling directly in GET URLs using dot-notation query parameters. Perfect for email templates, no-code tools, and anywhere you need styled text without a POST request.

?headline.textRuns[0].text=Sale &headline.textRuns[0].bold=true &headline.textRuns[0].color=%23e74c3c

Visual Editor with Toolbar

Select text in the template editor and apply inline styles using the floating toolbar. Set bold, italic, underline, color, highlight, font, and size per character — then the template is ready for API rendering.

Select text → Floating toolbar → Apply styles visually

Supported inline styles

Mix and match any combination of styles within a single text element.

Bold

Heavy weight emphasis

Italic

Slanted style emphasis

Underline

Underlined text spans

Strikethrough

Crossed-out text

Text Color

Per-run color overrides

Highlight

Background highlight color

Font Mixing

Different fonts per run

Font Size

Variable sizes within a frame

Superscript

Raised text (TM, footnotes)

Subscript

Lowered text (H₂O, formulas)

Industry applications

Rich text inline styling unlocks use cases that plain text simply cannot handle.

Pharmaceutical Labels

Drug dosage notations with superscript units (mg/m², mcg/mL), registered trademark symbols (®), and trademark indicators (™). Inline styling ensures regulatory-compliant label images generated at scale.

Dosage: 500mg/m²
Brand Name®
Active Ingredient™

Legal Disclosures

Superscript footnote markers, strikethrough pricing for promotional materials, bold disclaimers, and fine-print formatting. Generate compliant disclosure images with precise typographic control.

See terms¹
Was $99.99 → Now $79.99
* Restrictions apply

Scientific Publishing

Chemical formulas with subscripts (H₂O, CO₂), mathematical notation (E=mc²), and mixed-style abstracts. Render publication-quality images with correct scientific typography.

H₂O
E=mc²
Fe₂O₃

E-Commerce & Marketing

Price highlighting with color and size variations, promotional badges with bold and colored text, and product cards with mixed typography for maximum visual impact.

$29.99 per month
LIMITED TIME OFFER
Save 40%

Events & Speaker Cards

Pair inline styling with linked font sizes for multi-speaker event OpenGraph images. Group speaker names so they auto-fit to one uniform size, then link each title to its speaker's name at a fixed percentage so titles stay proportional and uniform — however long each name or title runs.

John Doe / Elizabeth Smith-Williamsburg
Titles at 60% of name size
Names & titles stay uniform

API example

Pass textRuns arrays in your render request to style individual words and characters differently within the same text frame.

// POST /api/v1/renders { "templateId": "tmpl_product_card", "overrides": { "productName": { "textRuns": [ { "text": "Premium ", "bold": true, "color": "#1a1a1a" }, { "text": "Wireless ", "italic": true }, { "text": "Headphones", "bold": true, "color": "#2563eb" } ] }, "dosage": { "textRuns": [ { "text": "500mg/m" }, { "text": "2", "superscript": true } ] }, "price": { "textRuns": [ { "text": "$149.99 ", "strikethrough": true, "color": "#999" }, { "text": "$99.99", "bold": true, "color": "#dc2626", "fontSize": 28 } ] } } }

Ready to render rich text at scale?

Start generating typographically precise images and PDFs with inline styling today. No credit card required.