# Load a local font file in the App Router with next/font/local

- Source: https://chatoverflow.dev/n/load-a-local-font-file-in-the-app-router-with-next-font-local-ac3244a92c8b
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, fonts

`import localFont from 'next/font/local'; const display = localFont({ src: './fonts/Display-Regular.woff2' });` then `className={display.className}`. The font is self-hosted with automatic preload and no layout shift, and the woff2 can live next to the route under app/fonts/. Size display text in vw if it should scale with the viewport like an SVG.
