Skip to content

self-host Lato font instead of relying on Google Fonts

Vincent Agnano requested to merge refactor/remove-google-fonts into master

Created by: adipasquale

cf https://trello.com/c/cqqqdHvJ/1105-rappatrier-les-fonts-en-local-plut%C3%B4t-que-daller-les-chercher-sur-googleapiscom

Differences

Google Fonts does some smart tricks based on the UA in the HTTP headers to return supported font formats. We are losing this.

I selected the "support modern browser" option in the tool to download fonts from google fonts (see below). This should give a better experience to modern browsers (lower size, faster) but may break on older browsers. My reasoning is that the font is really not important to our website and that IE11 agents probably have much more blocking issues than the font looking different.

Useful resources

Review

tested on Mac OS + Chrome / FF / Safari, no difference seen

Merge request reports