[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 21:02:32 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 hellofromTonya):

 >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?

 @domainsupport no, the integration exists now. Fonts that are
 programmatically registered, such as from a plugin, will be included in
 the Site Editor's > Styles > Typography font pickers for user selection.

 Enqueuing though should be limited to what users select as their global
 fonts. There's work underway to automatically enqueue what users select.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46370#comment:142>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list