[wp-meta] [Making WordPress.org] #7282: Host SVG image previews for Google Fonts listed in the Font Library
Making WordPress.org
noreply at wordpress.org
Tue Sep 19 21:29:02 UTC 2023
#7282: Host SVG image previews for Google Fonts listed in the Font Library
--------------------------+--------------------
Reporter: mmaattiiaass | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone:
Component: General | Keywords:
--------------------------+--------------------
In the new Font Library that will be introduced in WordPress 6.4, we
display a list of Google fonts. For performance reasons, instead of
loading the full font assets to create the font previews, we are rendering
a custom pre-generated SVG image with the preview. We would need to host
those images somewhere. It would be useful to host that in wporg CDN.
The SVG previews are currently hosted on this
repo:https://github.com/WordPress/google-fonts-to-wordpress-collection
specifically in the /output/preview folder.
We would need to host them to access them from the frontend of the Font
Library, you can try that in action on this Playground link:
https://shorturl.at/alpHP
This is the PR where this is being implemented:
https://github.com/WordPress/gutenberg/pull/54566
In summary:
What?
Host on wpoorg CDN, maintaining the same folders tree, the SVG files from
/output/preview of the repo mentioned.
Why?
To load font previews fast in the new WordPress Font Library.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/7282>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list