Shopify themes, liquid, logos, and UX
Theme fonts are not pulling when using Shopify CLI.
Expected behavior
Theme font's need to be downloaded.
Actual behavior
┃ ERROR get assets/Arial-Bold.eot: wrong number of arguments (given 4, expected 2..3)
┃ ERROR get assets/Arial-Bold.ttf: wrong number of arguments (given 4, expected 2..3)
┃ ERROR get assets/Arial-Bold.woff2: wrong number of arguments (given 4, expected 2..3)
┃ ERROR get assets/Arial-Bold.woff: wrong number of arguments (given 4, expected 2..3)
┃ ERROR get assets/Arial.eot: wrong number of arguments (given 4, expected 2..3)
┃ ERROR get assets/Arial.ttf: wrong number of arguments (given 4, expected 2..3)
┃ ERROR get assets/Arial.woff2: wrong number of arguments (given 4, expected 2..3)
┃ ERROR get assets/Arial.woff: wrong number of arguments (given 4, expected 2..3)
Steps to reproduce the problem
hey, did you find a solution for this?
No, this is broken and no one is answering here, even in Github
Ok I found a workaround at least:
It is not possible to pull fonts from shopify to local. I think that is by purpose, because they dont want you to upload fonts other then those they provide. They want you to use a CDN.
So either you are using Adobe Typekit, Font Awesome oder Google Fonts or some other font library which has its own CDN you can use. If so you can get your link there, for example I want to use the Google Font "Alata" which is not provided in Shopify. So I went to Google Fonts, got me the link to Google CDN and inserted this at the top of my custom CSS file. Works!
Or if you have a font that is not available on a CDN already you can host it somewhere else yourself or use a CDN service (maybe cloudflare?) to do so. I haven't tried to do that but I'm sure its possible and there are tutorials for that over the internet.
If you're running a international website I would recommend not to host fonts on your own server, but on a CDN, as it will likely slow down your page.
If somebody figures this out it would be nice to share a little how-to here ...
Hope this helps
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024