Opened 5 weeks ago
Closed 5 weeks ago
#66250 closed task (blessed) (fixed)
Update Google Fonts collection for 7.2 release
| Reported by: | wildworks | Owned by: | wildworks |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description (last modified by )
Related past tickets:
This ticket is the central ticket for updating Google Fonts in the 7.2 release.
The complete procedure for updating the font collection is documented here.
Members of the Google Font Collection repository have traditionally handled this task, but it should be possible for individuals outside of the repository to perform this work as well.
cc @mmaattiiaass @peterwilsoncc @mikachan @paulkevan
Change History (13)
#3
@
5 weeks ago
IMO, If there are new fonts available, we should update the collection; otherwise, we can skip this task for that release.
#4
@
5 weeks ago
If we want to move to committing differences in the fonts, then we'd probably want to choose a different folder structure, since they have previously followed release numbering.
#5
@
5 weeks ago
Thanks for the feedback! Let's make sure to update the font collection with every release then.
#6
@
5 weeks ago
Is this update altering files or adding files only?
For Twemoji updates, the existing folder is used if there are only new files (as the URLs won't be cached on the CDN) even if it means that the folder X.Y.Z actually contains files for X+1.Y.Z.
If there are only new font files, I think it's safe to update the existing folder with the new images, possibly with a new JSON file location. If that's possible, of course.
Switching to an API versioning URL structure could be helpful none-the-less.
#7
@
5 weeks ago
It turns out that this update involves modifying files. See https://github.com/WordPress/google-fonts-to-wordpress-collection/pull/58#issuecomment-6028474487
Just to be sure, I checked previous releases as well, and it seems that all the modified files are included.
- 6.7 → 6.9: 1,103 added, 63 removed, 560 changed (128 fonts)
- 6.9 → 7.0: 195 added, 0 removed, 29 changed (7 fonts)
- 7.0 → 7.1: 217 added, 11 removed, 159 changed (19 fonts)
- 7.1 → 7.2: 105 added, 0 removed, 38 changed (9 fonts)
6.5 is not compared because its previews folder is not in the repository.
#8
@
5 weeks ago
- Keywords 2nd-opinion removed
- Type enhancement → task (blessed)
Thanks Aki, a new path it is.
For this release let's go with the existing procedure and do the update. If you think it's worth altering the frequency, it can go through a make/core post rather than deciding on a ticket.
I've removed the second opinion keyword and converted this to a task.
#9
@
5 weeks ago
Update: A new font collection for 7.2 has been created and the PR has been merged.
https://github.com/WordPress/google-fonts-to-wordpress-collection/pull/58
As a next step, I've submited a meta ticket to host the font list on the GitHub repository.
#10
@
5 weeks ago
Fonts now hosted as per: https://meta.trac.wordpress.org/timeline?from=2026-10-09T08%3A09%3A57Z&precision=second
This ticket was mentioned in PR #14130 on WordPress/wordpress-develop by @paulkevan.
5 weeks ago
#11
- Keywords has-patch has-unit-tests added
Updates the default Google Fonts collection endpoint to the WordPress 7.2 versioned path on s.w.org, refreshing the bundled font collection for the 7.2 release.
This bumps the hard-coded wp-7.1 font URL path to wp-7.2 in the default google-fonts collection registration, and updates the matching preview-URL fixtures in the Font Library REST controller tests. It mirrors the change made for the 7.1 release in #12343 and for 7.0 in #64564.
src/wp-includes/fonts.php—font_familiesJSON URL for thegoogle-fontscollection.tests/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php— preview URL fixtures.tests/phpunit/tests/fonts/font-library/wpRestFontFacesController.php— preview URL fixture.
The regenerated 7.2 collection was merged in WordPress/google-fonts-to-wordpress-collection#58 (1949 → 1959 font families) and is already published at https://s.w.org/images/fonts/wp-7.2/, so the new URL resolves today.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Fable 5.1
Used for: Locating the endpoint and test references, applying the version bump following the precedent set by #12343, and running the Font Library REST tests locally. All changes were reviewed and verified by me.
---
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.
🤖 Generated with Claude Code
I've submitted https://github.com/WordPress/google-fonts-to-wordpress-collection/pull/58 for the 7.2 release.
However, I'm torn on whether we should update the font collection with every release. In this PR, the number of fonts only increased by 10, from 1,949 to 1,959. I'm wondering if updating it once a year might be enough.