---
title: "fontaine"
description: "Build plugin that generates metric-matched local fallback fonts automatically, eliminating layout shift while a webfont loads."
canonical: "https://vibing.inc/library/fontaine-vg-0965"
category: "Dev Utilities & Vibe-Coding Tooling"
subcategory: "UnJS toolkit"
license: "MIT"
author: "UnJS / Daniel Roe (@danielroe)"
source: "https://unjs.io/packages/fontaine"
---

# fontaine
Build plugin that generates metric-matched local fallback fonts automatically, eliminating layout shift while a webfont loads.
## Facts
- Source: https://unjs.io/packages/fontaine
- Category: Dev Utilities & Vibe-Coding Tooling / UnJS toolkit
- Author: UnJS / Daniel Roe (@danielroe)
- Licence: MIT
- Tags: fonts, cls, performance, unjs
## Why it's a gem
Kills font-swap layout shift with one plugin line. Directly visible design win.
---
Listed in The Vibeary: https://vibing.inc/library/fontaine-vg-0965 · JSON: https://vibing.inc/api/public/library/gems/fontaine-vg-0965