Changes between Version 2 and Version 3 of Ticket #59165
- Timestamp:
- 08/22/2023 02:02:43 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #59165 – Description
v2 v3 3 3 == What is Font Face? 4 4 5 Font Face's role is to generate and print the `@font-face` styles for all theme defined and user activated fonts (activation will be handled by Font Library - coming soon).5 Font Face's role is to generate and print the `@font-face` styles for all theme defined and user activated fonts (activation will be handled by Font Library #59166). 6 6 7 7 There is no font registration or enqueuing. … … 15 15 * when `_wp_get_iframed_editor_assets()` runs to inject the `@font-face` styles into the iframed editor. 16 16 17 Once called, it gets the fonts from Theme_JSON merged data layer, which includes theme defined fonts and user activated fonts (once the Font Library is introduced into Core).17 Once called, it gets the fonts from Theme_JSON merged data layer, which includes theme defined fonts and user activated fonts (once the Font Library #59166 is introduced into Core). 18 18 19 19 == What is `@font-face` styles? … … 44 44 But problems happened with a low level service trying to inject fonts into higher data levels. A low level service should not be involved in the process of determining what fonts are being used and should be generated and printed. Rather, a low level service should be told "Hey, process these fonts." 45 45 46 [https://github.com/WordPress/gutenberg/issues/52698 The Font Library]changed the direction as its role is to present fonts to users for them to manage what fonts they want on their website. Users will be able to upload / install, activate, and deactivate fonts. Those selections will then be saved for the system to use, including Font Face.46 The Font Library (see #59166) changed the direction as its role is to present fonts to users for them to manage what fonts they want on their website. Users will be able to upload / install, activate, and deactivate fonts. Those selections will then be saved for the system to use, including Font Face. 47 47 48 48 == Is it an API? … … 55 55 * [53282] / #55567 Added the stopgap code `_wp_theme_json_webfonts_handler()` in 6.0. 56 56 * [https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face @font-face on mdn web docs] 57 * #59166 Font Library: Font manager for WordPress