Skip to content

cURL Error on Specific Font #6

Answered by EricBusch
cjmellor asked this question in Q&A
Discussion options

You must be logged in to vote

I was also getting the cURL error 6: Could not resolve host: fonts.gstatic.com when running locally using HTTP and fixed it by removing https from the fonts.googleapis.com URLs like this:

'fonts' => [
    'anton'        => '//fonts.googleapis.com/css2?family=Anton&display=swap',
    'merriweather' => '//fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap',
    'roboto-mono'  => '//fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap',
],

Hope this helps!

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@cjmellor
Comment options

@cjmellor
Comment options

@blakeyman
Comment options

@EricBusch
Comment options

@blakeyman
Comment options

Answer selected by riasvdv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants