Google docs fonts

broken image
broken image
broken image

We recommend using variable fonts for the best performance and flexibility. Get started by importing the font you would like to use from next/font/google as a function. No requests are sent to Google by the browser. Fonts are included in the deployment and served from the same domain as your deployment. Google FontsĪutomatically self-host any Google Font.

CSS and font files are downloaded at build time and self-hosted with the rest of your static assets. This new font system also allows you to conveniently use all Google Fonts with performance and privacy in mind. This means you can optimally load web fonts with zero layout shift, thanks to the underlying CSS size-adjust property used. Next/font includes built-in automatic self-hosting for any font file. 🎥 Watch: Learn more about how to use next/font → YouTube (6 minutes). Next/font will automatically optimize your fonts (including custom fonts) and remove external network requests for improved privacy and performance.

broken image