Roboto font files are downloaded from https://fonts.google.com/ in .ttf format and converted to .woff2 format which is supported by all major browsers and have an advantage over the .ttfformat
.woff2 is used a default font format .ttf is used as fallback for older browsers
Roboto-Regular is preloaded to prevent page flashes
Hi 👋
This PR changes the way of loading fonts trough a CDN (fonts.googleapis.com) to a self hosted solution.
Many of us use Google fonts via a CDN. However, Germany has decided that this contravenes GDPR, leaving site owners open to litigation.
It is in general no longer recommended to use public CDN's (https://dev.to/rstacruz/public-cdns-arent-useful-anymore-2b66)
More info about the self hosted implementation:
.ttf
format and converted to.woff2
format which is supported by all major browsers and have an advantage over the.ttf
format.woff2
is used a default font format.ttf
is used as fallback for older browsers