# Load Google, Adobe, or self-hosted fonts

[Canonical article](https://slides.com/docs/custom-fonts)

Available on: Pro

Slides includes a number of preset font options but we also allow you to use custom fonts from Typekit, Google Fonts or even your own host.

&lt;video src=&quot;https://static.slid.es/help/custom-fonts-pro/custom-font-2ec1aa89.mp4&quot; width=&quot;2556&quot; height=&quot;1692&quot; preload=&quot;metadata&quot; autoplay muted playsinline loop controls&gt;&lt;/video&gt;

## Using fonts from Google

Follow these instructions to load a Google Font and apply it to your presentation.

1. Open the CSS editor.

2. Select the **Custom fonts** button, represented by a **T** in the upper-right corner.

    &lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/custom-font-trigger-84178bbb.png&quot; alt=&quot;Custom fonts button in the upper-right corner of the CSS editor&quot; width=&quot;2550&quot; height=&quot;1694&quot;&gt;

3. Enter the Google Font families you want to load. Slides suggests matching fonts as you type. Select **Save** when you are finished.

    &lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/custom-font-dialog-19cc1c03.png&quot; alt=&quot;Load custom fonts dialog with Lobster entered as a Google Font&quot; width=&quot;2550&quot; height=&quot;1700&quot;&gt;

4. Select **Apply custom font** above the CSS editor, then choose the font you want to use.

    &lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/custom-font-insert-step-1-76a74ae0.png&quot; alt=&quot;Apply custom font menu with Lobster available to select&quot; width=&quot;2550&quot; height=&quot;1696&quot;&gt;

5. Choose where to apply the font: **Body text**, **Heading 1**, **Heading 2**, or **Heading 3**. You can select more than one option. Select **Apply** to add the required CSS.

    &lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/custom-font-insert-step-2-e3e9f09b.png&quot; alt=&quot;Options for applying the Lobster font to body text or heading levels&quot; width=&quot;2558&quot; height=&quot;1696&quot;&gt;

The generated CSS appears in the editor and the presentation preview updates to show the result.

&lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/custom-font-applied-631daf9b.png&quot; alt=&quot;Lobster applied to the presentation heading with its CSS visible in the editor&quot; width=&quot;2554&quot; height=&quot;1696&quot;&gt;

Here&#39;s an example where a custom font called &quot;Lobster&quot; is applied to all headings and &quot;Open Sans&quot; is used for body text:

```less
// Use the &quot;Lobster&quot; font for all headings
.slides h1,
.slides h2,
.slides h3 {
    font-family: &quot;Lobster&quot;;
}

// Use &quot;Open Sans&quot; for body text
.slides {
    font-family: &quot;Open Sans&quot;;
}
```

## Using fonts from Typekit/Adobe Fonts

1. Add your font in Adobe Fonts/Typekit.

    &lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/1.png&quot; alt=&quot;Font selected in Adobe Fonts&quot; width=&quot;1500&quot; height=&quot;1522&quot;&gt;

2. Create a new Typekit web project.

    &lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/2.png&quot; alt=&quot;Creating an Adobe Fonts web project&quot; width=&quot;1588&quot; height=&quot;1264&quot;&gt;

3. Copy the Typekit ID from inside the embed code.

    &lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/3.png&quot; alt=&quot;Adobe Fonts project ID&quot; width=&quot;1610&quot; height=&quot;1400&quot;&gt;

4. Add the Typekit ID to the Custom Fonts popup in the Slides editor.

    &lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/4.png&quot; alt=&quot;Adobe Fonts project ID field in Slides&quot; width=&quot;2244&quot; height=&quot;1800&quot;&gt;

5. Apply the font with CSS. Use the font name exactly as shown in step 3.

    &lt;img src=&quot;https://static.slid.es/help/custom-fonts-pro/5.png&quot; alt=&quot;Adobe font-family name used in CSS&quot; width=&quot;1190&quot; height=&quot;770&quot;&gt;

### Typekit domain

If you&#39;re loading Typekit fonts make sure that your kit is configured to allow loading from the slides.com and *.slides.com domains.

### Typekit font names

If you&#39;re loading fonts from Typekit you&#39;ll need to open the kit configuration on the Typekit site to locate your font name(s). These names aren&#39;t always predictable – for example, if you&#39;re using Fira Sans the name may be something like &quot;fira-sans-2&quot;. You can learn more about how to locate your Typekit CSS font names in the following article: https://blog.typekit.com/2011/06/29/using-typekit-fonts-in-your-own-css/

## Using fonts from another host

You can load custom font files directly from another domain.

1. Open the CSS editor

2. Define your font using @font-face and apply it to the content, for example:

```less
// Include a custom font
@font-face {
  font-family: &quot;Cabin Sketch&quot;;
  src: url(&quot;https://static.slid.es/fonts/cabinsketch/cabinsketch-regular.woff&quot;) format(&quot;woff&quot;),
       url(&quot;https://static.slid.es/fonts/cabinsketch/cabinsketch-regular.ttf&quot;) format(&quot;truetype&quot;);
}

.slides h1, .slides h2, .slides h3 {
    font-family: &quot;Cabin Sketch&quot;;
}
```

### Server requirements

Externally hosted font files must be served over HTTPS.

The server must also be configured to allow the files to be loaded from the slides.com and *.slides.com domains. Cross domain loading is prevented by default by a mechanism called &quot;Cross-Origin Resource Sharing&quot; (CORS). To learn more about CORS and how to configure it please see this article: [https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)

### Applying fonts with CSS

When applying custom fonts or other CSS, make your selectors specific enough to override the default Slides styles. The easiest approach is to prefix the selector with `.slides`:

```less
// Apply font to headings
.slides h1, .slides h2, .slides h3 {
  font-family: &quot;My Custom Font&quot;;
}

// Apply font to body text
.slides {
  font-family: &quot;My Custom Font&quot;;
}

// Apply font to links
.slides a {
  font-family: &quot;My Custom Font&quot;;
}
```

### Presenting offline

Custom fonts loaded from a third-party server do not work in offline ZIP or Dropbox exports. They are included when exporting to PDF.
