|
1 | 1 | --- |
2 | 2 | pcx_content_type: overview |
3 | | -title: Cloudflare Fonts (beta) |
| 3 | +title: Cloudflare Fonts |
| 4 | +wid: fonts |
4 | 5 | sidebar: |
5 | 6 | order: 4 |
6 | | - badge: |
7 | | - text: Beta |
8 | | - |
9 | 7 | --- |
10 | 8 |
|
11 | | -import { GlossaryTooltip, Render, DashButton } from "~/components" |
| 9 | +import { GlossaryTooltip, Render, DashButton } from "~/components"; |
12 | 10 |
|
13 | 11 | Cloudflare Fonts is a feature designed for websites that use Google Fonts. It rewrites Google Fonts to be delivered from a website’s own origin, eliminating the need to rely on third-party font providers. Cloudflare Fonts is tailored to improve website performance and user privacy without the need for any code changes or self-hosting of fonts. |
14 | 12 |
|
@@ -49,8 +47,8 @@ To enable Cloudflare Fonts for your entire domain: |
49 | 47 |
|
50 | 48 | While Cloudflare Fonts offers powerful font optimization capabilities, it is important to be aware of its limitations: |
51 | 49 |
|
52 | | -* **Font transformation**: Currently, Cloudflare Fonts exclusively supports Google Fonts transformation. |
53 | | -* **APO compatibility**: Cloudflare Fonts does not operate when [Automatic Platform Optimization](/automatic-platform-optimization/) (APO) is enabled. Cloudflare APO automatically optimizes Google Fonts in a similar way. |
54 | | -* **CSS import**: Cloudflare Fonts is compatible only with the `<link>` setup for Google Fonts and does not support the CSS `@import` method. |
55 | | -* **CSP headers**: Cloudflare Fonts does not modify <GlossaryTooltip term="content security policy (CSP)" link="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy">Content Security Policy (CSP)</GlossaryTooltip> headers. Certain CSP configurations may make Cloudflare Fonts stop working, such as restrictions on inline styles through [`style-src`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/style-src), or restriction of fonts originating from the site's own origin via [`font-src`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/font-src). |
56 | | -* **Fallback mechanism**: In cases where Cloudflare Fonts does not support a specific page, it will gracefully fallback to using Google Fonts. |
| 50 | +- **Font transformation**: Currently, Cloudflare Fonts exclusively supports Google Fonts transformation. |
| 51 | +- **APO compatibility**: Cloudflare Fonts does not operate when [Automatic Platform Optimization](/automatic-platform-optimization/) (APO) is enabled. Cloudflare APO automatically optimizes Google Fonts in a similar way. |
| 52 | +- **CSS import**: Cloudflare Fonts is compatible only with the `<link>` setup for Google Fonts and does not support the CSS `@import` method. |
| 53 | +- **CSP headers**: Cloudflare Fonts does not modify <GlossaryTooltip term="content security policy (CSP)" link="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy">Content Security Policy (CSP)</GlossaryTooltip> headers. Certain CSP configurations may make Cloudflare Fonts stop working, such as restrictions on inline styles through [`style-src`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/style-src), or restriction of fonts originating from the site's own origin via [`font-src`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/font-src). |
| 54 | +- **Fallback mechanism**: In cases where Cloudflare Fonts does not support a specific page, it will gracefully fallback to using Google Fonts. |
0 commit comments