SAP Knowledge Base Article - Public

2938762 - Troubleshooting Custom Fonts in SAP Analytics Cloud (SAC) & SAP Digital Boardroom

Symptom

How to use Custom Web Fonts for use in Stories in SAP Analytics Cloud (SAC):

  • "There was a problem with the provided URL. Please check the URL and try again" when attempting to add Custom Web Fonts in "System > Administration > Default Appearance" page
  • "Your font has become invalid, please try re-adding the font" after successfully adding a Custom Web Font

Environment

  • SAP Analytics Cloud (Enterprise) 2022.x.x+

Reproducing the Issue

  1. Log in to SAP Analytics Cloud
  2. Navigate to Menu > System > Adminstration > Default Appearance > Story Fonts
  3. Follow the Using Custom Web Fonts Guide

Resolution

Please make sure to follow the Using Custom Web Fonts Guide and KBA 2953986 - How to set up Custom Web Fonts on SAP Analytics Cloud.

If you still receive error messages please check the following;

Troubleshooting

CORS Header

If you are using your own properierty web font please make sure your web server hosting your Font Declaration(.css) and font (eg. woff2) files contain the "Access-Control-Allow-Origin" (CORS) header set to either * or your SAP Analytics Cloud tenant URL as shown in the screenshot below;

1.PNG

The example image above demonstrates the Access-Control-Allow-Origin is present in the Response Headers from the Web Server hosting the Font Declaration (.css) file. 

To check this, please open the Google Chrome Developer Tools and navigate to the Network tab when accessing the .css and .woff2 files directly in your browser.

If this is missing, please contact your Web Server Administrator to resolve this, as this is currently not in the scope of SAP Product Support.

Supported Content Types

When using properierty web fonts, please make sure the "Content-Type" header for the font file url, is one of the supported types below;”;

  • font/ttf

  • font/woff

  • font/woff2

  • font/otf

  • application/font-woff

  • application/font-woff2

  • application/x-font-truetype

  • application/x-font-opentype

  • application/vnd.ms-fontobject

  • application/x-font-ttf

  • application/x-font-woff

  • application/x-font-woff2

  • application/x-font-otf

If a different Content-Type is used, please contact your Web Server Administrator to resolve this, as this is currently not in the scope of SAP Product Support.

Custom Font is no longer shown in Stories

  • In order for SAP Analytics Cloud to display the Custom Web Font in your browser, both font declaration file and font file should be reachable by the browser you are accessing SAC from.
  • However, Google Chrome can cache the font for up to a year in some cases, so it is possible that the "Your font has become invalid, please try re-adding the font" error message is displayed when the Custom Web Font is still visible in the SAC story.

Custom Font is not shown in the Mobile App versions of SAP Analytics Cloud, or when Exporting to PDF

  • Currently, Custom Web Fonts are not supported for the Mobile App versions of SAC, or when exporting to PDF from a browser

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Connection, Sac, Connector, Live, Acquisition, Up, Set, setup, Model, BW, Connect, Story, Tenant, Import, Failed, Using, Working, SAML, SSO, sapanalyticscloud, sap analytical cloud, sap analytical cloud, SAC, sap analyst cloud, connected, failure, stopped , KBA , LOD-ANA-ADM , SAC Administration , Problem

Product

SAP Analytics Cloud 1.0