[wp-trac] [WordPress Trac] #59166: Font Library: Font manager for WordPress
WordPress Trac
noreply at wordpress.org
Tue Aug 22 13:59:46 UTC 2023
#59166: Font Library: Font manager for WordPress
--------------------------+--------------------------------------------
Reporter: mmaattiiaass | Owner: hellofromTonya
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.4
Component: Editor | Version:
Severity: normal | Keywords: gutenberg-merge needs-dev-note
Focuses: |
--------------------------+--------------------------------------------
Introducing the Font Library, a font manager for WordPress.
This ticket is for tracking the merge of the Font Library from Gutenberg
into Core.
== What is Font Library?
Font Library is a font manager for WordPress, similar to the Media
Library. It provides a user interface and workflow experience for users to
manage the fonts they want on globally used on their website.
It will be available globally, independently of the theme activated.
The list of installed fonts and their assets are site-wide available and
the users can select the fonts activated (available in the editor) for
each theme.
Using the Font Library the users can:
* Install fonts
* Install Google fonts
* Install local fonts
* Uninstall fonts
* Activate/deactivate fonts
== How it works:
- **Install fonts:** add the font family definition to the installed
fonts. list and download the font face assets to `/wp-
content/uploads/fonts`).
- **Install Google fonts:** add the font families definition to the
list and downloads the Google fonts assets to `/wp-content/uploads/fonts`.
The assets from Google are called just at the time of previewing fonts in
the font library. After the fonts is installed no other request to Google
or other third-party servers will be made because the font assets are
hosted locally in the `/wp-content/uploads/fonts` folder.
- **Install local fonts** The font assets are uploaded from the users
devices to the `wp-content/uploads/fonts` folder and the font definitions
are added to the list of installed fonts.
- **Activate/deactivate fonts:** add/remove font-family definitions from
the font families list defined in Global Styles/Settings. The active fonts
are the fonts that will be available to use in the editor. As we are using
the Global Styles data the users are able to activate/deactivate fonts for
each theme.
- **Uninstall fonts:** remove the font family definition from the list of
installed fonts and delete the assets from `/wp-content/uploads/fonts`
folder. Only the non-active fonts from the user-installed fonts can be
uninstalled. Theme fonts will be able to be deactivated but not
uninstalled.
== References:
* [https://github.com/WordPress/gutenberg/issues/52698 Stage 1: Google and
Local fonts] tracking ticket.
* [https://github.com/WordPress/gutenberg/issues/53307 Stage 2: Fonts
Library extensions] tracking ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59166>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list