Fonts

With the release of Publii version 0.39.0, there has been a big change in our themes regarding the way fonts are loaded. Previously, the Google font loaded directly from its CDN. However, since the majority of browsers have now blocked resource-caching from transferring across domains, users will need to redownload the font files for every site they visit that uses the same font, regardless of whether it was downloaded and cached previously from another site. Even more importantly, the EU court has deemed that Google Fonts (loaded directly from its CDN) are not compliant with the GDPR, which requires consent to be sought before any personally-identifiable information can be collected and stored.

Due to these changes, all fonts provided by Publii will from now on be loaded locally (self-hosting), which confers a few benefits to our earlier solution:

  • Avoids an Extra DNS Lookup
  • Removes Non-Minified CSS
  • Provides Better Control over Cache Settings
  • Complies with the GDPR

Variable fonts

To reduce the number of font files as well as to provide greater control over them, our themes come with variable fonts only. With variable fonts, instead of loading a normal and bold version of the font, Publii will only load a single file. This is important because Publii allows for two different fonts to be loaded; if both a standard and bold version of each of these fonts was included on the site, the total weight (that is, download size) of the files would be too much and could negatively affect load times.

Another advantage of using variable fonts is that now we can manipulate their size across the full range; instead of only being able to choose between displaying the font at 400 (normal) or 700 (bold), we can choose to display a given font at a seemingly random size such as 436, which affords us even greater control when customizing the style of our site. 

Pretty great, isn't it?

One more thing to be aware of; you may have noticed that we have omitted some very popular fonts like “Open Sans” or “Noto Sans” from the fonts included in Publii. We made the decision to not include these fonts as their weight (size) is a bit too big, which in our opinion is not acceptable when trying to build a lightweight static website such as Publii is designed for.

The list of available fonts with their specification

Below you can find the list of all fonts used in our themes, including their typeface, weight, or size. 

NamePreviewTypeWeight rangeSize
Andada Pro
serif400 - 840106 KB
Antonio
sans-serif100 - 70037 KB
Archivo Narrow
sans-serif400 - 70037 KB
Asap
sans-serif400 - 70057 KB
Besley
serif400 - 90049 KB
Big Shoulders Display
cursive100 - 90082 KB
Bitter
serif100 - 900108 KB
Brygada 1918
serif400 - 70089 KB
Cairo
sans-serif200 - 90074 KB
Comfortaa
cursive300 - 70080 KB
Dancing Script
cursive400 - 70059 KB
Domine
serif400 - 70040 KB
Dosis
sans-serif200 - 80047 KB
Exo
sans-serif100 - 90054 KB
Faustina
serif300 - 80049 KB
Glory
sans-serif100 - 80042 KB
Gluten
cursive100 - 90079 KB
Heebo
sans-serif100 - 90041 KB
JetBrains Mono
monospace100 - 80071 KB
Jura
sans-serif300 - 70078 KB
Karla
sans-serif200 - 80042 KB
Kreon
serif
300 - 70033 KB
Lemonada
cursive300 - 70081 KB
Libre Franklin
sans-serif100 - 90044 KB
Lora
serif400 - 70083 KB
Manuale
serif300 - 80076 KB
Manrope
sans-serif100 - 90053 KB
Merriweather Sans
sans-serif300 - 80093 KB
Montserrat
sans-serif100 - 900125 KB
Nunito
sans-serif200 - 900100 KB
Oswald
sans-serif200 - 70066 KB
Petrona
serif100 - 90086 KB
Playfair Display
serif400 - 900106 KB
Public Sans
sans-serif100 - 90040 KB
Quicksand
sans-serif300 - 70052 KB
Raleway
sans-serif100 - 900128 KB
Red Hat Mono
monospace300 - 70029 KB
Roboto Slab
serif100 - 900117 KB
Rubik
sans-serif300 - 90077 KB
Ruda
sans-serif400 - 90038 KB
sans-serif100 - 90041 KB
Source Code Pro
monospace200 - 90085 KB
Spartan
sans-serif100 - 90044 KB
Urbanist
sans-serif100 - 90038 KB
Yanone Kaffeesatz
sans-serif200 - 70053 KB