Instead of relying on Google's CDN we can serve fonts files via django-static. The files are already inside bread/static/fonts, we only need to change the scss files. The relevant files are inside bread/static/design/carbon_design/scss/globals/scss/vendor/@carbon/type/scss:
font-face/_sans-condensed.scss
font-face/_sans.scss
font-face/_serif.scss
font-face/_mono.scss
_inlined/font-face/_sans-condensed.scss
_inlined/font-face/_sans.scss
_inlined/font-face/_serif.scss
_inlined/font-face/_mono.scss
We can remove the "woff" support, as it only for really old browsers (roughly 2015 ear) or Internet Explorer. Only woff2 is required. And we can assume a fixed static url /static/ (normally we should rely on djangos configuration of the url prefix for static urls). This is not optimal, but this is practice the only value used and we can work-around in other cases.
Instead of relying on Google's CDN we can serve fonts files via django-static. The files are already inside bread/static/fonts, we only need to change the scss files. The relevant files are inside
bread/static/design/carbon_design/scss/globals/scss/vendor/@carbon/type/scss
:font-face/_sans-condensed.scss
font-face/_sans.scss
font-face/_serif.scss
font-face/_mono.scss
_inlined/font-face/_sans-condensed.scss
_inlined/font-face/_sans.scss
_inlined/font-face/_serif.scss
_inlined/font-face/_mono.scss
We can remove the "woff" support, as it only for really old browsers (roughly 2015 ear) or Internet Explorer. Only woff2 is required. And we can assume a fixed static url
/static/
(normally we should rely on djangos configuration of the url prefix for static urls). This is not optimal, but this is practice the only value used and we can work-around in other cases.