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

WordPress Trac noreply at wordpress.org
Tue Aug 22 22:55:42 UTC 2023


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

Comment (by hellofromTonya):

 == Scenario 2 Test Report

 Testing Instructions: comment:7

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/5051

 === Environment
 - OS: macOS
 - Localhost: wp-env Docker
 - PHP: 7.4.33
 - WordPress: trunk
 - Browser: Firefox and Chrome
 - Theme: Twenty Twenty-One (TT1)
 - Active Plugins:
   - [https://github.com/hellofromtonya/font-face-tester Font Face Tester]

 === Actual Results

 For Step 3,

 - ✅ Confirmed `<style id="wp-fonts-local">` element is in the main
 document's head.

 - ✅ Confirmed the `<style id="wp-fonts-local">` element contains the
 expected CSS.

 {{{
 <style id="wp-fonts-local">
 @font-face{font-family:"Playfair Display";font-style:normal;font-
 weight:200 900;font-display:fallback;src:url('http://localhost:8889/wp-
 content/plugins/font-face-tester/assets/fonts/PlayfairDisplay-
 VariableFont_wght.ttf') format('truetype');}
 @font-face{font-family:"Playfair Display";font-style:italic;font-
 weight:200 900;font-display:fallback;src:url('http://localhost:8889/wp-
 content/plugins/font-face-tester/assets/fonts/PlayfairDisplay-Italic-
 VariableFont_wght.ttf') format('truetype');}
 </style>
 }}}

 See the results in [attachment:"Scenario2-Step3.png"].


 === Additional Notes

 ✅ Works as expected.

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


More information about the wp-trac mailing list