Home / Companies / Vercel / Blog / Post Details
Content Deep Dive

Custom fonts without compromise using Next.js and `next/font`

Blog post from Vercel

Post Details
Company
Date Published
Author
Ian Jones, Alice Alexandra Moore
Word Count
957
Language
English
Hacker News Points
3
Summary

next/font` is a reliable solution for using custom fonts in Next.js applications, eliminating complex workarounds and reducing code complexity. It automatically optimizes font loading with self-hosting, preloading only the characters needed, and preventing layout shift entirely by calculating the size-adjust property based on actual font files. With `next/font`, users can easily add new fonts and integrate them seamlessly into their site's design, enhancing typographical performance without the baggage associated with custom fonts.