You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of a couple of days, a random: @font-face{font-display:swap;font-family:Libre Franklin;font-style:normal;font-weight:400;src:url(/static/webfonts/l/font) format("woff"),url(/static/webfonts/l/font) format("woff"),url(/static/webfonts/l/font) format("woff")}
is added to the <style> tag, destroying the actual 400 reference to the font.
Okay I figured it out.
By default, woff2 and woff are loaded. Apparently, woff is starting to return the /l/font?kit... urls, which mess up the logic of this codebase. I don't understand why the formatAgent stuff is needed, but
makes the font return these urls. So I guess technically you could also change the formatAgent?
But I chose to now only load woff2 by setting formats: ['woff2']
As of a couple of days, a random:
@font-face{font-display:swap;font-family:Libre Franklin;font-style:normal;font-weight:400;src:url(/static/webfonts/l/font) format("woff"),url(/static/webfonts/l/font) format("woff"),url(/static/webfonts/l/font) format("woff")}
is added to the <style> tag, destroying the actual 400 reference to the font.
After digging in, theres an added:
https://fonts.gstatic.com/l/font?kit=blabla&skey=blabla&v=v40
font loaded. I guess Google Webfont changed stuff?
This is now destroying the lowest font weight in production sites.
The text was updated successfully, but these errors were encountered: