alfredxing / brick

Open-source webfont service
http://brick.im
2.87k stars 96 forks source link

Merriweather returns a 404 #156

Closed chrisfinazzo closed 6 years ago

chrisfinazzo commented 6 years ago

Getting this error on one of my sites where I have the following font URL:

https://brick.a.ssl.fastly.net/fonts/Merriweather/700.woff

Is this because of #153, perhaps?

alfredxing commented 6 years ago

Hi! I don't believe so... are you referencing that URL directly in your code, or using the CSS generation? In either case the font name should be lowercase (i.e. https://brick.a.ssl.fastly.net/fonts/merriweather/700.woff should work)

chrisfinazzo commented 6 years ago

Huh. I guess older versions were somehow less strict about this and didn't choke on it. I'll regenerate this and check again to make sure it works.

chrisfinazzo commented 6 years ago

I think this is correct, different fonts, but regenerates and everything loads.

@font-face {
    font-family: 'Cardo';
    font-style: normal;
    font-weight: 700;
    src: local('Cardo-Bold'), url(//brick.freetls.fastly.net/fonts/cardo/700.woff) format('woff')
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    src: local('Source Sans Pro Regular'), url(//brick.freetls.fastly.net/fonts/sourcesanspro/400.woff) format('woff')
}

@font-face {
    font-family: 'Source Serif Pro';
    font-style: normal;
    font-weight: 400;
    src: local('Source Serif Pro'), url(//brick.freetls.fastly.net/fonts/sourceserifpro/400.woff) format('woff')
}