[Fonts API] enqueue programmatically fonts picked in block settings #40386
Projects
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
Hmm, I think this issue is not an issue after #40362 gets resolved.. Why? The intent is to populate typography pickers with only enqueued fonts. |
What problem does this address?
Picking a programmatically registered font in the block settings does not enqueue it, unless it's been allow-listed in
theme.json[settings][fontFamilies]
.What is your proposed solution?
We need to introspect block settings on render and look for font families. Once a family is found, and that font is registered, enqueue it.
Blockers
We only want to work on this after #40362, so only a subset of programmatically registered webfonts show up in the block settings.
The text was updated successfully, but these errors were encountered: