Make WordPress Core

Opened 2 months ago

Closed 6 weeks ago

#65509 closed enhancement (fixed)

Update Google Fonts collection for 7.1 release

Reported by: wildworks Owned by: wildworks
Priority: normal Milestone: 7.1
Component: General Version:
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses:

Description

Related past tickets:

This ticket is the central ticket for updating Google Fonts in the 7.1 release.

The complete procedure for updating the font collection is documented here.

https://github.com/WordPress/google-fonts-to-wordpress-collection#creating-a-new-version-of-the-font-collection

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 @dd32

Attachments (1)

meta.trac.wordpress.org_newticket.png (1.2 MB ) - added by iamchitti 7 weeks ago.
Here is the full page screenshot -

Download all attachments as: .zip

Change History (18)

#1 @wildworks
2 months ago

  • Type defect (bug)enhancement

This ticket was mentioned in PR #12343 on WordPress/wordpress-develop by @iamchitti.


7 weeks ago
#2

  • Keywords has-patch has-unit-tests added

Updates the default Google Fonts collection endpoint to the WordPress 7.1 versioned path on s.w.org, refreshing the bundled font collection for the 7.1 release.

This bumps the hard-coded wp-7.0 font URL path to wp-7.1 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.0 release in #64564.

  • src/wp-includes/fonts.phpfont_families JSON URL for the google-fonts collection.
  • tests/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php — preview URL fixtures.
  • tests/phpunit/tests/fonts/font-library/wpRestFontFacesController.php — preview URL fixture.

Note: the tests pass once the regenerated collection JSON is published to s.w.org/images/fonts/wp-7.1/, which is handled separately per the font collection update procedure. I'm already working on it.

Trac ticket: https://core.trac.wordpress.org/ticket/65509

## Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 4.8
Used for: Locating the endpoint and test references, and applying the version bump following the precedent set by #64564. All changes were reviewed and verified by me.

#4 @wildworks
7 weeks ago

A new font collection for 7.1 has been created and the PR has been merged.

https://github.com/WordPress/google-fonts-to-wordpress-collection/pull/55

@iamchitti, would you mind submitting a meta ticket? Please refer to this section for more details.

#5 @iamchitti
7 weeks ago

Thanks @wildworks! I've been trying to create the meta ticket for the CDN hosting request, but I'm running into a blocker: I'm unable to actually submit it.

After filling in all the ticket details, the only button available is "Continue to preview". Clicking it reloads the page and scrolls to the preview section, but there's no "Submit" or "Create ticket" button anywhere on the page — including at the bottom of the form.

Things I've already tried, none of which worked:

  • Reloading / hard-refreshing after previewing and scrolling through the full form.
  • Switching the ticket type between "enhancement" and "defect (bug)".
  • Opening the New Ticket page in an incognito window, login and try creating ticket.

Could this be a permissions issue with my WP account, or is there something I'm missing in the flow?

@iamchitti
7 weeks ago

Here is the full page screenshot -

#6 @wildworks
6 weeks ago

@iamchittib It seems to be an issue with Meta Trac itself. Let's wait a bit until the problem is resolved.

#7 @iamchitti
6 weeks ago

Tried today. Still not working.

Some folks are able to create tickets as I can see from the latest list - https://meta.trac.wordpress.org/report/17

#8 @wildworks
6 weeks ago

I cannot create a ticket yet either. I would like to ask someone to host the font.

---

The Google Fonts collection referenced by the WordPress font library depends on the google-fonts-to-wordpress-collection repository. Therefore, in order to update the Google Fonts data, the new font data must be hosted in the google-fonts-to-wordpress-collection repository. Furthermore, that font data must be accessible on the s.w.org domain.

The font data for 7.1 is already prepared in the google-fonts-to-wordpress-collection directory. See https://github.com/WordPress/google-fonts-to-wordpress-collection/pull/55

We would be happy if this font data could be hosted as follows:

This file:
https://github.com/WordPress/google-fonts-to-wordpress-collection/blob/trunk/releases/wp-7.1/collections/google-fonts-with-preview.json
Should be hosted at:
https://s.w.org/images/fonts/wp-7.1/collections/google-fonts-with-preview.json

This folder:
https://github.com/WordPress/google-fonts-to-wordpress-collection/tree/trunk/releases/wp-7.1/previews
Should be hosted at:
https://s.w.org/images/fonts/wp-7.1/previews

This ticket was mentioned in Slack in #meta by wildworks. View the logs.


6 weeks ago

#10 @paulkevan
6 weeks ago

Per this Slack conversation (https://wordpress.slack.com/archives/C02QB8GMM/p1783568080125159) I will commit and deploy these on wp.org, I'll update once it's done.

#11 @wildworks
6 weeks ago

@paulkevan, Just a heads-up, please do not commit https://github.com/WordPress/wordpress-develop/pull/12343 to core yet. We need to commit that PR after hosting the new font is completed.

See https://github.com/WordPress/google-fonts-to-wordpress-collection#7-host-fonts-via-cdn for more details.

@paulkevan commented on PR #12343:


6 weeks ago
#12

Per this: https://core.trac.wordpress.org/timeline?from=2026-07-09T10%3A53%3A11Z&precision=second, waiting on the fonts being deployed - i'll follow-up once done.

#13 @paulkevan
6 weeks ago

Just an FYI for next time - due to the size of the commit/deploy, it was more efficient to run as an svn cp operation, so it would be helpful to have a diff against the previous version so it's easier to compare what changed.

Last edited 6 weeks ago by paulkevan (previous) (diff)

#14 @paulkevan
6 weeks ago

This is now live.

@paulkevan commented on PR #12343:


6 weeks ago
#16

Fonts now on the CDN, so this can be merged when appropriate to do so.

#17 @wildworks
6 weeks ago

  • Owner set to wildworks
  • Resolutionfixed
  • Status newclosed

In 62693:

Editor: Update Google Fonts API endpoint for WordPress 7.1.

Developed in: https://github.com/WordPress/wordpress-develop/pull/12343

Props iamchitti, paulkevan, wildworks.
Fixes #65509.

Note: See TracTickets for help on using tickets.