OPEN_SOURCE ↗
X · X// 6h agoTUTORIAL
Browser Run tip loads custom fonts
Cloudflare Browser Run can render screenshots and PDFs with custom fonts by injecting a `@font-face` rule via `addStyleTag`. That avoids fallback system fonts and keeps generated output on-brand for documents, certificates, and other polished exports.
// ANALYSIS
Small feature, big practical payoff: font fidelity is one of the easiest ways browser automation output looks amateur, so this is the kind of detail that matters in production.
- –`addStyleTag` supports fonts from a CDN or embedded Base64, so the render path stays flexible
- –The same approach works for both screenshots and PDFs, which helps keep visual output consistent
- –Useful for AI agents and automation flows that generate customer-facing artifacts, not just internal screenshots
- –Reinforces that Browser Run is aimed at production browser work, not just basic scraping
// TAGS
browser-runautomationapicloud
DISCOVERED
6h ago
2026-05-01
PUBLISHED
6h ago
2026-04-30
RELEVANCE
7/ 10
AUTHOR
dok2001