Skip to content

Commit

Permalink
Add Clarity About Downloading and Self-Hosting a Font File
Browse files Browse the repository at this point in the history
  • Loading branch information
MaedahBatool committed Jan 28, 2022
1 parent 5ebc6d0 commit f915d6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/basic-features/font-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ Automatic Webfont Optimization currently supports Google Fonts and Typekit with
See [Google Font Display](https://nextjs.org/docs/messages/google-font-display) for more information.
> **Note**: If you want to download and self-host a font file, then our Font Optimization will not work. This is by design!
>
> To benefit from font optimization, it's recommended to include the link of the font file in the `Head` component and fetch it from a CDN like Google Fonts.
## Disabling Optimization
If you do not want Next.js to optimize your fonts, you can opt-out.
Expand Down

0 comments on commit f915d6d

Please sign in to comment.