Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #59165


Ignore:
Timestamp:
08/22/2023 02:02:43 PM (4 months ago)
Author:
hellofromTonya
Comment:

Added links to Font Library Trac ticket, i.e. #59166.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59165 – Description

    v2 v3  
    33== What is Font Face?
    44
    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).
     5Font 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).
    66
    77There is no font registration or enqueuing.
     
    1515* when `_wp_get_iframed_editor_assets()` runs to inject the `@font-face` styles into the iframed editor.
    1616
    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).
     17Once 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).
    1818
    1919== What is `@font-face` styles?
     
    4444But 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."
    4545
    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.
     46The 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.
    4747
    4848== Is it an API?
     
    5555* [53282] / #55567 Added the stopgap code `_wp_theme_json_webfonts_handler()` in 6.0.
    5656* [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