ampproject / error-reporting

Contains production error tracking issues.
Apache License 2.0
2 stars 5 forks source link

🚨 Error: Could not resolve '400 8px Baloo 2' as a font. #162

Open ampprojectbot opened 2 years ago

ampprojectbot commented 2 years ago

Details

Error report: link First seen: May 18, 2022 Frequency: ~ 2,992/day

Stacktrace

Error: Could not resolve '400 8px Baloo 2' as a font.
    at could-not-resolve-400-8px-baloo-2-as-a-font.js:1:1

/cc @ampproject/release-on-duty

mszylkowski commented 2 years ago

This is an AMP cache experiment that waits for font loading, but can't properly wait for fonts that have spaces: document.fonts.load("400 8px Baloo 2") is failing,document.fonts.load("400 8px 'Baloo 2'") works.

We need to wrap the font-family name in quote symbols.

jridgewell commented 2 years ago

@erwinmombay

erwinmombay commented 2 years ago

We've submitted a fix for this internally and will provide an update when fix has been fully rolled out