arthur791004 and matticbot Google Fonts: Integrate with new font library (#33203)
2ef4625 Oct 19, 2023
Google Fonts: Integrate with new font library (#33203)
* Google Fonts: Support new font library

* changelog

* Bump version

* Refactor with the google-fonts.json

* Load the Jetpack Google Fonts collection from remote

* Add error handling

* Filter out the theme fonts

* Get google fonts list from the remote data

* Use wp_remote_get to fetch remote data instead of WP_Font_Collection

* Keeps the hard-coded Google Fonts unchanged

* Address feedback

* Address feedback

* Load google fonts after plugins are loaded

* Fix the usgae of the jetpack_google_fonts_api_url filter

* Fix gthe origin of the google fonts api url isn't replaced

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/6574706910
2ef4625