Skip to content
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

Webfonts API: Document fontFace and it’s values in theme.json schema #41844

Merged
merged 8 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Settings related to typography.
| textTransform | boolean | true | |
| dropCap | boolean | true | |
| fontSizes | array | | name, size, slug |
| fontFamilies | array | | fontFamily, name, slug |
| fontFamilies | array | | fontFace, fontFamily, name, slug |

---

Expand Down
27 changes: 27 additions & 0 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,33 @@
"fontFamily": {
"description": "CSS font-family value.",
"type": "string"
},
"fontFace": {
"description": "",
"type": "array",
"items": {
"type": "object",
"fontFamily": {
"description": "CSS font-family value.",
"type": "string"
},
"fontWeight": {
"description": "List of available font weights, separated by a space.",
"type": "string"
},
"fontStyle": {
"description": "CSS font-style value.",
"type": "string"
},
"fontStretch": {
"description": "CSS font-stretch value.",
"type": "string"
},
"src": {
"description": "Paths or URLs to the font files.",
"type": "array"
grappler marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
},
"additionalProperties": false
Expand Down