[wp-trac] [WordPress Trac] #46370: Fonts API: a proposal for creating an API to register and enqueue web fonts
WordPress Trac
noreply at wordpress.org
Wed Jun 7 20:07:43 UTC 2023
#46370: Fonts API: a proposal for creating an API to register and enqueue web fonts
--------------------------------+-----------------------------------
Reporter: jonoaldersonwp | Owner: hellofromTonya
Type: feature request | Status: assigned
Priority: normal | Milestone: 6.3
Component: General | Version:
Severity: normal | Resolution:
Keywords: needs-testing-info | Focuses: performance, privacy
--------------------------------+-----------------------------------
Comment (by domainsupport):
Replying to [comment:140 hellofromTonya]:
> There's currently no integration between the Fonts API and the Theme
JSON / Theme JSON Resolver to remove theme defined fonts from its data
layer.
Oh right! Does this mean that when `wp_register_fonts()` and
`wp_enqueue_fonts()` is used that, likewise, fonts added this way will not
be visible in the "Dashboard - Appearance - Editor - Styles - Typography -
Text - Typography" dropdown or does it work OK this way around?
> Can you open an [https://github.com/WordPress/gutenberg/issues issue in
Gutenberg] please? Thank you!
Absolutely. Just need to think about it first as I may already have a
working solution.
Thank you,
Oliver
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46370#comment:141>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list