Google Fonts

Google Fonts can be added to any Skin by way of the $functionality property and the fonts_google parameter.

After activating Google Fonts in your Skin, Google Fonts will appear with a (G) next to them in font <select> dropdowns in the Design Options.

How to Add Google Fonts to Thesis

By default, Google Fonts $functionality includes all Google Fonts that come in 400, 400 italic, and 700 weights (see the full list below).

If you’d like to add other Google Fonts to Thesis, you can do so via the thesis_google_fonts array filter, which accepts items in a special format.

In the following example, I’ll illustrate how you can add Google Fonts to your Skin by using the construct() method and a custom filter method:

public function construct() {
	add_filter('thesis_google_fonts', array($this, 'add_google_fonts'));
}

public function add_google_fonts($fonts) {
	$fonts['Montserrat'] = array(
		'styles' => '400,700',
		'type' => 'sans-serif',
		'mu' => false,
		'x' => false);
	return $fonts;
}

A few points are worth noting from the custom add_google_fonts method above. First, Montserrat is the name of the Google Font being added. It’s important to get this correct because this is precisely how Google refers to its fonts. Next, the parameters:

  • styles — whatever styles you want to include should be comma-separated here
    • To indicate an italic weight, you would use: 400italic
  • type — (optional) serif, sans-serif, or monospace
  • mu — (optional) if you know the character constant for this font, include it here
  • x — (optional) if this font requires an x-height correction, set this to true

Default Google Fonts in Thesis

  • Alegreya
  • Alegreya SC
  • Alegreya Sans
  • Alegreya Sans SC
  • Almendra
  • Amaranth
  • Amiri
  • Anonymous Pro
  • Archivo Narrow
  • Arimo
  • Arvo
  • Asap
  • Averia Libre
  • Averia Sans Libre
  • Averia Serif Libre
  • Bitter
  • Cabin
  • Cambay
  • Cantarell
  • Cardo
  • Caudex
  • Cousine
  • Crimson Text
  • Cuprum
  • Droid Serif
  • Economica
  • Exo
  • Expletus Sans
  • Fira Sans
  • Gentium Basic
  • Gentium Book Basic
  • Gudea
  • Istok Web
  • Josefin Sans
  • Josefin Slab
  • Judson
  • Karla
  • Lato
  • Lekton
  • Libre Baskerville
  • Lobster Two
  • Lora
  • Marvel
  • Merriweather
  • Merriweather Sans
  • Neuton
  • Nobile
  • Noticia Text
  • Noto Sans
  • Noto Serif
  • Old Standard TT
  • Open Sans
  • Overlock
  • Philosopher
  • Playfair Display
  • Playfair Display SC
  • PT Sans
  • PT Serif
  • Puritan
  • Quantico
  • Quattrocento Sans
  • Raleway
  • Rambla
  • Roboto
  • Roboto Condensed
  • Roboto Mono
  • Roboto Slab
  • Rosario
  • Rubik
  • Scada
  • Share
  • Source Sans Pro
  • Tinos
  • Titillium Web
  • Trochut
  • Ubuntu
  • Ubuntu Mono
  • Volkhov
  • Vollkorn