I am aware of the solution to Open Sans, which selects an alternative font, that ticket is committed already and closed so I am not adding this as a comment on that thread.

The issue with that solution is that the font is still requested, so for sites in China (https://www.drupal.org/node/2451083) or others who are overriding the font the font is still requested despite setting avoid_custom_font (https://www.drupal.org/node/2506661#comment-10132960).

The attached patch is a proposed improvement which does the following:

  1. Put the code that loads Google fonts into a separate stylesheet font.css
  2. Only load font.css if the theme setting avoid_custom_font

So if you have created a sub-theme of Adminimal and you use that as your theme you will be able to load your own Open Sans font, or you can do whatever you like.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

duncan.moo created an issue. See original summary.

duncan.moo’s picture