-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use the /download URLs to fetch static font files #7481
Comments
This is also breaking my build for the Beekeeper Studio docs - https://github.com/beekeeper-studio/beekeeper-studio/actions/runs/8469768189/job/23205855650, would love for this change to be reverted! |
fonts.google.com/download (and all other endpoints under fonts.google.com/*) are internal and not meant for external use as they may change at any time without warning. If you need access to font metadata and the font binaries you can instead use the public developer api: https://developers.google.com/fonts/docs/developer_api |
Thanks for the info. We decided to fix this by adding the font resources into our repo and COPYing them in the Dockerfile. Was much easier than handling a dynamic list of font families, at the cost of a slightly larger repo 😅 |
This isn't available since Google removed the static downloads, we'll need another approach to handle this Refs google/fonts#7481 Refs qgis#57070
This isn't available since Google removed the static downloads, we'll need another approach to handle this Refs google/fonts#7481 Refs #57070
This isn't available since Google removed the static downloads, we'll need another approach to handle this Refs google/fonts#7481 Refs #57070
This isn't available since Google removed the static downloads, we'll need another approach to handle this Refs google/fonts#7481 Refs #57070
This isn't available since Google removed the static downloads, we'll need another approach to handle this Refs google/fonts#7481 Refs #57070
This isn't available since Google removed the static downloads, we'll need another approach to handle this Refs google/fonts#7481 Refs #57070
Describe the issue
Hi! Our team is relying on accessing font files using the
https://fonts.google.com/download?family=Noto+Sans+SC
URL format. The URLs used to point directly to a ZIP file, which we download withwget
, unzip, and load into the system as part of the CI process.However, now that the page returns HTML that initiates the download with JavaScript, it's not clear how we should get access to the files programmatically. I scoured the documentation but couldn't find any indication of download paths for static font resources, only different options for using webfonts.
To Reproduce
wget https://fonts.google.com/download?family=Noto+Sans+SC -O noto-sans-sc.zip
unzip noto-sans-sc.zip
Expected behavior
We've relied on the (currently undocumented?) /download URLs to return single files instead of HTML pages.
Additional context
The base image for our container is
public.ecr.aws/lambda/nodejs:18
. Can also be reproduced on recent Linux and macOS versions (although you may need to download theunzip
utility first, e.g.yum install unzip
).The text was updated successfully, but these errors were encountered: