Skip to content
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

This doesn't seem to work at all #23

Open
ghost opened this issue Jun 23, 2021 · 4 comments
Open

This doesn't seem to work at all #23

ghost opened this issue Jun 23, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 23, 2021

As far as the Terminal goes, that seems to do as described (as shown below), however even after a restart FontBook doesn't show any more fonts than when I originally started (which is 324).

From what I can see, this isn't actually working as advertised (yet Terminal shows no errors).

lee@Lees-Mac-Mini ~ % sudo curl https://raw.githubusercontent.com/qrpike/Web-Font-Load/master/install.sh | bash
Password:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1157  100  1157    0     0   5756      0 --:--:-- --:--:-- --:--:--  5756
Installing all Google Web Fonts onto your System
Downloading the fonts...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   127  100   127    0     0    445      0 --:--:-- --:--:-- --:--:--   445
100    14  100    14    0     0     25      0 --:--:-- --:--:-- --:--:--    25
Extracting the fonts...
tar: Error opening archive: Unrecognized archive format
Fonts installed; Cleaning up files...
All done! All Google Fonts installed.
lee@Lees-Mac-Mini ~ % 
@miclgael
Copy link

I came here to open the same issue :)

Installing all Google Web Fonts onto your System
Downloading the fonts...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   127  100   127    0     0   1351      0 --:--:-- --:--:-- --:--:--  1351
100    14  100    14    0     0     36      0 --:--:-- --:--:-- --:--:--   159
Extracting the fonts...
tar: Error opening archive: Unrecognized archive format
Fonts installed; Cleaning up files...
All done! All Google Fonts installed.
➜  ~

@ghost
Copy link
Author

ghost commented Jun 23, 2021

Not sure if this helps, but when looking at the script, it gets to this line:

curl -L https://github.com/google/fonts/tarball/master -o /tmp/master.tar.gz

Trying to visit this in a browser gives a redirects to https://codeload.github.com/google/fonts/legacy.tar.gz/master and then shows a 404 not found message.

Perhaps this is the issue, as when I run the script and get to the point where the master.tar.gz is created in the tmp folder, that is only a few kb in size, and trying to extract that via the Finder, it tells me it's not a supported format.

@miclgael
Copy link

miclgael commented Jun 23, 2021

Good lead!

Maybe this zip is also helpful? https://github.com/google/fonts/archive/main.zip (600MB)

from https://github.com/google/fonts readme

Edit: Seems it also exists there as a tarball https://github.com/google/fonts/archive/main.tar.gz

Edit 2: This seems to work 👇 so, maybe I can make a PR with that line tweaked to point to the main.tar.gz 🤔

curl https://raw.githubusercontent.com/miclgael/Web-Font-Load/master/install.sh | bash

@miclgael
Copy link

Hi @qrpike, did you happen to have a chance to take a look at my PR? -> #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant