Skip to main content

Enable offline fonts for the Sitecore client

Abstract

Describes how to use offline fonts on, for example, a CM server that does not have access to the internet.

The Sitecore client uses fonts from Google (fonts.googleapis.com). If you do not have access to the internet from a Sitecore role such as Content Management, the requests for loading these fonts (in, for example, the Content Editor or the Experience Editor) time out. This deteriorates performance significantly.

To enable offline fonts:

  • Create a configuration patch file with this content:

    <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
      <sitecore>
        <settings>
          <setting name="DefaultFontUrl" value="/layouts/offline_fonts.css"/>
        </settings>
      </sitecore>
    </configuration>