Skip to content
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

Problem with Google AMP #19

Open
iradofurioso opened this issue May 7, 2018 · 1 comment
Open

Problem with Google AMP #19

iradofurioso opened this issue May 7, 2018 · 1 comment

Comments

@iradofurioso
Copy link

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?

@javiernunez
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@iradofurioso @javiernunez and others