IcoMoon-Free icon indicating copy to clipboard operation
IcoMoon-Free copied to clipboard

Problem with Google AMP

Open iradofurioso opened this issue 6 years ago • 1 comments

Hello, I'm having troubles with Google AMP. The font is not loading over CDN.

If you access the font directly with the link it works

www.centralandroid.com.br/wp-content/plugins/accelerated-mobile-pages/templates/design-manager/swift/fonts/icomoon.ttf

However when Google tries to access over CDN it gives 404 error.

https://www-centralandroid-com-br.cdn.ampproject.org/r/s/www.centralandroid.com.br/wp-content/plugins/accelerated-mobile-pages/templates/design-manager/swift/fonts/icomoon.ttf

Do you have any idea about how to fix it?

iradofurioso avatar May 07 '18 16:05 iradofurioso

Hi @tresloukadu. It seems that AMP has some whitelisted external sources to get fonts from: https://www.ampproject.org/docs/design/responsive/custom_fonts

So AMP doesn't allow to load fonts from other places.

javiernunez avatar Jul 18 '18 06:07 javiernunez