Skip to content
Snippets Groups Projects
Commit f0e7878c authored by Ryan Gonzalez's avatar Ryan Gonzalez
Browse files

Replace Google Fonts download URL with Fontsource


This stopped working recently; we can just download it from an actual
API designed for this instead, which should be safer.

Signed-off-by: default avatarRyan Gonzalez <ryan.gonzalez@collabora.com>
parent fb3eff43
No related branches found
No related tags found
1 merge request!35[v2024] Replace Google Fonts download URL with Fontsource
Pipeline #921438 passed
......@@ -19,15 +19,15 @@ test-no-extra-locales-included() {
}
test-fontconfig-dirs() {
curl -Lo cousine.zip https://fonts.google.com/download?family=Cousine
curl -Lo cousine.zip https://api.fontsource.org/v1/download/cousine
rm -rf "$DATA_HOME/fonts"
mkdir "$DATA_HOME/fonts"
# Run bsdtar in the runtime so that we don't need unzip on the host system.
flatpak-run-in --filesystem="$DATA_HOME/fonts" --filesystem="$PWD" "$APP" \
bsdtar -C "$DATA_HOME/fonts" -xf cousine.zip
bsdtar -C "$DATA_HOME/fonts" -xf cousine.zip --strip-components=1 'ttf/*'
flatpak-run-in "$APP" fc-cache -fv
match-any-lines '/run/host/user-fonts/Cousine' \
match-any-lines '/run/host/user-fonts/cousine' \
flatpak-run-in "$APP" fc-list
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment