Custom fonts on SharePoint – how to add, apply, and automate

Custom fonts on SharePoint - how to add, apply, and automate

Do you want to change fonts on your SharePoint sites? You can do it using a new Brand center! Microsoft’s released the feature 2 weeks ago as a preview and you can test it right now. Add custom fonts, apply fonts to sites, and even use Power Automate to do it automatically on multiple sites.

Let’s test it out.

Brand center overview

The SharePoint brand center is a main centralized store where you can store and manage your fonts, colors, themes, templates, images, and more. In the preview version, you can only manage fonts used on all of your SharePoint sites. It’s a global configuration which means that if you add a custom font centrally, local site admins can only use them.

Using Brand fonts features you can add custom font or fonts, compose a font package, and then apply it on a selected site or all sites. Custom fonts also work on Viva Connections Dashboards.

Supported font types:

  • .ttf
  • .otf
  • .woff
  • .woff2

Before you start uploading fonts check if you ca to use a specific custom font in this scenario (use on a website).  Each font has its own license and approved use cases. It is your responsibility to make sure that it’s valid. More information about licensing is available on the Font Licensing for the brand center page.

Configuration

The very first step is to configure the Brand center. The Brand center can be managed by selected users, but configuration must be done by a Microsoft 365 Global administrator.

1. Go to the Microsoft 365 admin center, select Settings section, then Org settings, and open the Brand Center (preview) link

2. On the configuration page you must check and confirm the default configuration or modify it (you change only the Brand site URL). When it’s done copy the first link.

3. Open the 1st link in your web browser, open the Settings pane, and select the Brand center (preview) options

  • There are 3 sections:
  • Brand fonts – here you can upload custom fonts
  • SharePoint packages – create fonts package for SharePoint sites
  • Viva Connections packages – create fonts package for Viva Connections

Add a new custom font

Now it’s time to add a custom font to your Brand center.

1. Open the Brand fonts section select the Upload icon and select a font that you want to add.

2. The selected font will be uploaded to the font library. It will take a minute or two to process the new font. It’s important to use the Upload icon, otherwise the font processing mechanism won’t work (at least in the Preview version).

3. Go back to the Brand center site open the SharePoint section and select the New font package

4. The first page specifies a font for important items and content. You can select a different one for each section.

5. On the next page, you must assign fonts for specific page elements (title, headline, body, interactive). Choose a font and a style for each section and go the next step.

6. The last step is to enter a name for your package and Save.

Apply font to a site

Now the sweetest part – applying a custom font to a size 😊

1. Navigate to your SharePoint site (you must be a site owner of it), open Settings, then select Change the look, select Font (preview), and click on the drop-down with fonts.

2. There are 2 sections – From my organization with your custom fonts, and From Microsoft with fonts provided by Microsoft. If you don’t upload custom fonts you can still change the default font to another provided by Microsoft.

When you confirm the change the new font will be applied immediately.

Automation

It’s automation time!!!

You can apply a custom font to any site, but you can do it manually. There is no global switch or any other mechanism that can help you do that for more than 1 site at a time.

But you can use Power Automate which can help you do that. So how to do it?

In this example, I will create a simple manually triggered flow to get all available fonts and then apply one on a specific SharePoint site. You can use this approach to apply custom fonts when a new site is created or to specific list of sites.

1. Create a Flow and add a Send an HTTP request to SharePoint action

2. Configure the action to get out-of-the-box or custom fonts

Site Address – select one of your sites

Method – GET

Uri (for out-of-the-box fonts) – _api/OutOfBoxFontPackages

Uri (for custom fonts) – _api/FontPackages

Content-type – application/json;odata=nometadata

Accept – application/json;odata=nometadata

ParameterDataComments
Site Addressselect one of your sites 
MethodGET 
Uri_api/OutOfBoxFontPackagesfor out-of-the-box fonts
_api/FontPackagesfor custom fonts
Content-typeapplication/json;odata=nometadata 
Acceptapplication/json;odata=nometadata 

3. Save it and Test it. The HTTP actions will get information about available fonts with names and IDs.

4. To apply a font to a site you can use an ID or the name of the font. Add again a Send an HTTP request to SharePoint action and configure it

ParameterValueComments
Site Addressselect one of your sites 
MethodPOST 
Uri*_api/OutOfBoxFontPackages /GetByTitle(‘Font_Name’)/Applyfor out-of-the-box fonts
_api/OutOfBoxFontPackages /GetByID(‘Font_ ID’)/Applyfor out-of-the-box fonts
_api/FontPackages/GetByTitle(‘Font_Name’)/Applyfor custom fonts
_api/FontPackages/ GetByID (‘Font_ID’)/Applyfor custom fonts
Content-typeapplication/json;odata=nometadata 
Acceptapplication/json;odata=nometadata 

*As a Uri parameter, you can use the GetByTitle method or GetByID. It’s up to you.

Summary

Brand fonts is one of the most important features for internal sites and Intranets. You can finally change the font on your sites to match your brand identity, guidelines, and corporate policies. It doesn’t require coding or complex external solutions – just a site and a font 😊

This is a preview feature which means it will be enhanced and you can find glitches or missing parts.

The Brand center itself will be enhanced this year and will get more features to globally manage brand elements across Microsoft 365. Stay tuned!

Q&A

Q. Can I delete fonts from the Brand center site?
A. It’s not possible right now.

Q. I have a hub site with sites connected to it. Do I have to change fonts on each site or only on a hub site?
A. Fonts changes on a hub site are not inherited by sites connected to it.

Q. Is there a way to select a font when I create a new site?
A. At this moment it’s not possible. You can do this manually when the site is created or use Power Automate.

You may also like

Leave a Reply

Your email address will not be published. Required fields are marked *