-
Notifications
You must be signed in to change notification settings - Fork 9k
Create supported-fonts.mdx #24917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Create supported-fonts.mdx #24917
Changes from 3 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
src/content/docs/browser-rendering/reference/supported-fonts.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
pcx_content_type: reference | ||
title: Supported fonts | ||
sidebar: | ||
order: 3 | ||
--- | ||
|
||
Browser Rendering uses a managed Chromium environment that includes a standard set of fonts. When you generate a screenshot or PDF, text is rendered using the fonts available in this environment. | ||
|
||
## Generic CSS font family support | ||
|
||
The following generic CSS font families are supported: | ||
|
||
- `serif` | ||
- `sans-serif` | ||
- `monospace` | ||
- `cursive` | ||
- `fantasy` | ||
|
||
## Common system fonts | ||
|
||
- Andale Mono | ||
- Arial | ||
- Arial Black | ||
- Comic Sans MS | ||
- Courier | ||
- Courier New | ||
- Georgia | ||
- Helvetica | ||
- Impact | ||
- Lucida Handwriting | ||
- Times | ||
- Times New Roman | ||
- Trebuchet MS | ||
- Verdana | ||
- Webdings | ||
|
||
## Open source and extended fonts | ||
|
||
- Bitstream Vera (Serif, Sans, Mono) | ||
- Cyberbit | ||
- DejaVu (Serif, Sans, Mono) | ||
- FreeFont (FreeSerif, FreeSans, FreeMono) | ||
- GFS Neohellenic | ||
- Liberation (Serif, Sans, Mono) | ||
- Open Sans | ||
- Roboto | ||
|
||
## International fonts | ||
|
||
Browser Rendering includes additional font packages for non-Latin scripts and emoji: | ||
|
||
- IPAfont Gothic (Japanese) | ||
- Indic fonts (Devanagari, Bengali, Tamil, and others) | ||
- KACST fonts (Arabic) | ||
- Noto CJK (Chinese, Japanese, Korean) | ||
- Noto Color Emoji | ||
- TLWG Thai fonts | ||
- WenQuanYi Zen Hei (Chinese) | ||
|
||
## Notes | ||
|
||
- If your webpage specifies a font that is not supported yet, Chromium will automatically fall back to a similar supported font. | ||
- If you would like to use a font that is not currently supported, reach out to us on [Cloudflare Discord](https://discord.cloudflare.com/). |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these notes aren't extensive and they're easy to miss, I'd suggest maybe just adding them to the top under the intro (without any notes header). Just as another paragraph, directly below the intro paragraph. Up to you.