-
Notifications
You must be signed in to change notification settings - Fork 2
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
Why does it require Google fonts? #6
Comments
I ran into exactly the same issue, while also trying to use Excalidraw fonts. It seems like a tool that literally just inlines fonts does not exist. I ended up manually downloading those two fonts and writing a hacky script to insert them:
You can use it like this:
It also sucks because it also includes the entire font even though only a few characters are probably used. My SVG goes from 21 kB to 213 kB. Not ideal but it could be worse. |
To follow up here, you can manually download the fonts and place them in your cache directory to avoid downloading from Google. I had to do this because the tool now fails with a 503 error when trying to download any font. On Mac, this is located in
Optimized size is still quite large with 9.7KB file becoming 203KB. |
Is there a specific reason for this restriction? My SVG file contains the URL where to download the font, so arguably there is no reason it can't just retrieve that?
The text was updated successfully, but these errors were encountered: