Creating A New Font Scheme For SharePoint 2013 Composed Look

The first thing you need to do is to download an existing font scheme from the Theme Gallery (Site Settings > Themes). In the 15 folder, you will find four different font schemes,

  • fontscheme001.spfont;
    • Bodoni Book;
    • Segoe UI;
  • fontscheme002.spfont;
    • Georgia;
    • Segoe UI;
  • fontscheme003.spfont;
    • Rockwell Light;
    • Segoe UI;
  • SharePointPersonality.spfont (standard font scheme);
    • Segoe UI Light;
    • Segoe UI.

Download one of these files and open in your favorite text editor. All the elements for which the fonts can be defined are in this file. Each element has the following XML structure,

  1. <s:fontSlot name="title">  
  2. <s:latin typeface="Rockwell Light" eotsrc="/_layouts/15/fonts/RockwellLight.eot" woffsrc="/_layouts/15/fonts/RockwellLight.woff" ttfsrc="/_layouts/15/fonts/RockwellLight.ttf" svgsrc="/_layouts/15/fonts/RockwellLight.svg" largeimgsrc="/_layouts/15/fonts/RockwellLightLarge.png" smallimgsrc="/_layouts/15/fonts/RockwellLightSmall.png" />  
  3. <s:ea typeface="" />  
  4. <s:cs typeface="Segoe UI Light" />  
  5. <s:font script="Arab" typeface="Segoe UI Light" />  
  6. <s:font script="Deva" typeface="Nirmala UI" />  
  7. <s:font script="Grek" typeface="Segoe UI Light" />  
  8. <s:font script="Hang" typeface="Malgun Gothic" />  
  9. <s:font script="Hans" typeface="Microsoft YaHei UI" />  
  10. <s:font script="Hant" typeface="Microsoft JhengHei UI" />  
  11. <s:font script="Hebr" typeface="Tahoma" />  
  12. <s:font script="Hira" typeface="Meiryo UI" />  
  13. <s:font script="Thai" typeface="Tahoma" />  
  14. <s:font script="Armn" typeface="Segoe UI Light" />  
  15. <s:font script="Beng" typeface="Nirmala UI" />  
  16. <s:font script="Cher" typeface="Gadugi" />  
  17. <s:font script="Ethi" typeface="Ebrima" />  
  18. <s:font script="Geor" typeface="Segoe UI Light" />  
  19. <s:font script="Gujr" typeface="Nirmala UI" />  
  20. <s:font script="Guru" typeface="Nirmala UI" />  
  21. <s:font script="Knda" typeface="Nirmala UI" />  
  22. <s:font script="Khmr" typeface="Khmer UI" />  
  23. <s:font script="Laoo" typeface="Lao UI" />  
  24. <s:font script="Mlym" typeface="Nirmala UI" />  
  25. <s:font script="Mymr" typeface="Myanmar Text" />  
  26. <s:font script="Orya" typeface="Nirmala UI" />  
  27. <s:font script="Sinh" typeface="Nirmala UI" />  
  28. <s:font script="Syrc" typeface="Estrangelo Edessa" />  
  29. <s:font script="Taml" typeface="Nirmala UI" />  
  30. <s:font script="Telu" typeface="Nirmala UI" />  
  31. <s:font script="Thaa" typeface="MV Boli" />  
  32. <s:font script="Tibt" typeface="Microsoft Himalaya" />  
  33. <s:font script="Yiii" typeface="Microsoft Yi Baiti" />  
  34. </s:fontSlot>  
As you can see, you could define fonts for different languages, but you do not need to define all of them. For me the most important is the Latin one. The rest can be removed, so you end up with this,
  1. <s:fontSlot name="title">  
  2. <s:latin typeface="Rockwell Light" eotsrc="/_layouts/15/fonts/RockwellLight.eot" woffsrc="/_layouts/15/fonts/RockwellLight.woff" ttfsrc="/_layouts/15/fonts/RockwellLight.ttf" svgsrc="/_layouts/15/fonts/RockwellLight.svg" largeimgsrc="/_layouts/15/fonts/RockwellLightLarge.png" smallimgsrc="/_layouts/15/fonts/RockwellLightSmall.png" />  
  3. <s:ea typeface="" />  
  4. <s:cs typeface="Segoe UI Light" />  
  5. </s:fontSlot>  

The s:ea (EastAsianFont) and s:cs (ComplexScriptFont) elements cannot be removed, otherwise the composed looks page cannot be loaded.

Changing the fonts

What I want to achieve is that all the elements use Verdana as font.

This is what my font file looks like,

  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <s:fontScheme name="Xylos" previewSlot1="title" previewSlot2="body" xmlns:s="http://schemas.microsoft.com/sharepoint/">  
  3.     <s:fontSlots>  
  4.         <s:fontSlot name="title"> <s:latin typeface="Verdana" /> <s:ea typeface="" /> <s:cs typeface="Verdana" /> </s:fontSlot>  
  5.         <s:fontSlot name="navigation"> <s:latin typeface="Verdana" /> <s:ea typeface="" /> <s:cs typeface="Verdana" /> </s:fontSlot>  
  6.         <s:fontSlot name="small-heading"> <s:latin typeface="Verdana" /> <s:ea typeface="" /> <s:cs typeface="Verdana" /> </s:fontSlot>  
  7.         <s:fontSlot name="heading"> <s:latin typeface="Verdana" /> <s:ea typeface="" /> <s:cs typeface="Verdana" /> </s:fontSlot>  
  8.         <s:fontSlot name="large-heading"> <s:latin typeface="Verdana" /> <s:ea typeface="" /> <s:cs typeface="Verdana" /> </s:fontSlot>  
  9.         <s:fontSlot name="body"> <s:latin typeface="Verdana" /> <s:ea typeface="" /> <s:cs typeface="Verdana" /> </s:fontSlot>  
  10.         <s:fontSlot name="large-body"> <s:latin typeface="Verdana" /> <s:ea typeface="" /> <s:cs typeface="Verdana" /> </s:fontSlot>  
  11.     </s:fontSlots>  
  12. </s:fontScheme>  

Upload your file to the Theme Gallery (Site Settings > Themes), and you will be able to use your new font scheme in the composed looks.

On the Change the look page (Site Settings > Change the look) you will now be able to select the Verdana font in the Fonts menu.
SharePoint
Selecting your font scheme.

Ebook Download
View all
Learn
View all