[wp-trac] [WordPress Trac] #59165: Font Face: Server-side @font-face styles generator and printer

WordPress Trac noreply at wordpress.org
Mon Apr 1 15:19:29 UTC 2024


#59165: Font Face: Server-side @font-face styles generator and printer
-------------------------------------------------+-------------------------
 Reporter:  hellofromTonya                       |       Owner:
                                                 |  hellofromTonya
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.4
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  gutenberg-merge has-patch has-unit-  |     Focuses:
  tests has-testing-info has-screenshots commit  |
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 >Though introduced in 6.4, I think a dev note would be better for 6.5 when
 the font management (with Font Library) also ships. Then guidance can be
 given more holistically for block, hybrid, and classic theme and plugin
 developers.

 Following up on a ping from @leonnugraha as to whether to include Font
 Face with the Font Library dev note.

 No, Font Face, and more specifically `wp_print_font_faces()`, should (and
 was) not be included with the Font Library dev note. Why? It's not part of
 the Font Library; rather, it's low-level functionality that works out-of-
 the-box.

 What about classic themes that might want to use `wp_print_font_faces()`?

 My current thinking: The
 [https://developer.wordpress.org/reference/functions/wp_print_font_faces/
 dev docs page] should be enough to guide extenders building classic
 themes. Thus, I'm thinking a dev note specifically for classic themes is
 not needed. However if it is needed, one can be created.

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


More information about the wp-trac mailing list