Adding fonts via theme.json adds them to the library, but they are inactive (so they do not appear in the block editor properties). How can I activate them programmatically?
"typography": {
"fontFamilies": [
{
"fontFamily": "Rubik",
"name": "Rubik",
"slug": "rubik",
"fontFace": [
{
"fontFamily": "Rubik",
"src": ["file:./assets/fonts/rubik.woff2"]
}
]
}
]
}
fonts added but inactive
New contributor
Els is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.