---
title: "Handling custom web fonts"
description: "Learn how to load custom web fonts without compromising performance."
url: "https://vercel.com/templates/next.js/loading-web-fonts"
links:
  repository: "https://github.com/vercel/examples/tree/main/solutions/loading-web-fonts"
  demo: "https://solutions-loading-web-fonts.vercel.app"
  deploy: "https://vercel.com/new/clone?demo-title=Handling+custom+web+fonts&demo-description=Learn+how+to+load+custom+web+fonts+without+compromising+performance.&demo-url=https%3A%2F%2Fsolutions-loading-web-fonts.vercel.app&project-name=loading-web-fonts&repository-name=loading-web-fonts&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fsolutions%2Floading-web-fonts&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F1l4fsd1PQ9moWdeXO695yb%2F601ca66301bf82d7c0a61ba054c3e132%2Fsolutions-loading-web-fonts.vercel.app_.png"
---

# Handling custom web fonts

Learn how to load custom web fonts without compromising performance.

This example shows how to load custom web fonts without compromising performance.

## Demo

https://solutions-loading-web-fonts.vercel.app

## How to Use

You can choose from one of the following two methods to use this repository:

### One-Click Deploy

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/loading-web-fonts&project-name=loading-web-fonts&repository-name=loading-web-fonts)

### Clone and Deploy

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npx create-next-app --example https://github.com/vercel/examples/tree/main/solutions/loading-web-fonts
# or
yarn create next-app --example https://github.com/vercel/examples/tree/main/solutions/loading-web-fonts
```

Next, run Next.js in development mode:

```bash
npm install
npm run dev

# or

yarn
yarn dev
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=edge-middleware-eap) ([Documentation](https://nextjs.org/docs/deployment)).

## Related Templates

### [Reducing bandwidth usage with next/image](https://vercel.com/templates/next.js/reduce-image-bandwidth-usage)

Learn how to reduce bandwidth and processing costs when using different layouts.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
