How to ensure custom fonts display correctly in N4V for Webi HTML exports

Anonymised summary of support ticket #474613 (2024-02-19)

Symptom

Custom fonts (e.g., Montserrat) do not render in N4V diagrams when exported to HTML, defaulting to system fonts like Times New Roman on client machines.

Environment

N4V for Webi (SAP BusinessObjects Web Intelligence) with custom font usage in diagrams. HTML exports affected.

Resolution

  1. Create the directory 'N4VCustomElements/res/css/fonts' on the application server.
  2. Upload the custom font file (e.g., Montserrat.ttf) to the 'fonts' directory.
  3. Edit the CSS file used by N4V HTML exports (e.g., 'N4VCustomElements/res/css/jquery-ui.css') and add the following rule: '@font-face { font-family: Montserrat; src: url(./fonts/Montserrat.ttf); }'.
  4. For future releases (e.g., N4V 2024.1.0), a custom.css file will be available in HTML exports for overriding default styles.

Other resolution

Custom fonts must be embedded or referenced in the CSS to ensure cross-client compatibility in HTML exports.