documentation

Everything you need to use onlyfonts: a privacy-first font CDN with a Google Fonts-compatible API, semantic search, and 2,600+ open-source fonts.

guides

  • getting started — Load any onlyfonts font on your site with one link tag. Google Fonts-compatible CSS API, served from EU edge with no tracking.
  • migrating from Google Fonts — Switch from fonts.googleapis.com to cdn.onlyfonts.ai by changing one hostname. Same css2 URL format, EU hosting, no user tracking.
  • subsetting — How onlyfonts splits fonts into character-set subsets with unicode-range so browsers download only what a page uses.
  • custom domains — Serve fonts from your own hostname like fonts.yourcompany.com, backed by the onlyfonts CDN.
  • language support — How onlyfonts detects and reports language coverage, and the Ukrainian Cyrillic policy.
  • Astro — Add onlyfonts to Astro's Fonts API in one line with @onlyfonts/unifont. Fonts are subset and self-hosted at build time — no requests to Google, none to any CDN at runtime.
  • Nuxt — Use onlyfonts with Nuxt via @nuxt/fonts and @onlyfonts/unifont. Register one provider and any onlyfonts font is subset and self-hosted at build with no runtime tracking.

reference

  • API reference — REST API for browsing the catalog, semantic font search, image-based font identification, and typography suggestions. No auth required for reads.
  • CDN reference — All cdn.onlyfonts.ai endpoints — css2 Google-compatible API, native CSS endpoint, direct font files, caching behavior.
  • licenses — What the open-source font licenses in the catalog (SIL OFL, Apache 2.0) allow, and your responsibilities.

for AI agents

  • agents hub — how agents can search and use fonts programmatically
  • llms.txt — machine-readable site index