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:
- Put the code that loads Google fonts into a separate stylesheet font.css
- 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.
Comment | File | Size | Author |
---|---|---|---|
#2 | adminimal_theme-disable-open-sans-request-if-avoid_custom_font-2770347.patch | 4.67 KB | duncan.moo |
Comments
Comment #2
duncan.moo CreditAttribution: duncan.moo as a volunteer commented