Starting with the release of Strategy ONE (March 2024), dossiers are also known as dashboards.
SYMPTOM
When attempting to export a Dashboard to PDF in Strategy Secure Enterprise 10.6 and newer using the new PDF Export Engine on Linux operating systems, users may see the following error in the resulting PDF file:
No font is available. Please contact the administrator to confirm that at least one font is installed
and Export Service is permitted to load system fonts, and then restart Export Service to try again.
Reviewing the NewExportEngine.log file will also show the following error:
No font is available and texts cannot be rendered.
CAUSEThe issue is caused because the New Export Engine cannot determine if any fonts are installed on the Operating System. In order to confirm which fonts are installed, list all fonts installed on the system that are known to
fontconfig, by using the command:
fc-list
If the command fails or no output is received, the service will throw the errors described above. Here are some common reasons for this command failure:
- The location of the fc-list binary is not within the services path environment variable.
- No fonts are installed on the machine.
- Due to stress on the system, the command does not return quick enough and thus the service assumes it fails.
- The command (fc-list) returns some non-0 exit value, which indicates a failure.
ACTION
In order to resolve the issue, users should verify that fonts are installed and that the path environment variable for the service includes the directory where fc-list binary is located. If it is confirmed that the command runs successfully and that fonts are on the system, the following entry can be added to the application.properties file located at <MSTR_INSTALL_HOME>/IntelligenceServer/PDFExportService:
exporter.phantomjs.font.check=0
Once this is added, users should restart the PDF Export Service. The setting will skip the font check - this option should only be used if users have confirmed that fc-list is accessible and fonts are installed on the machine and if the PDF export is still resulting in the above-described error.
RELATED ARTICLE:KB441194: How to install and use fonts for Reports/Documents/Dashboards for the Export Engine to PDF with Strategy Intelligence Server Universal 9.x-10.x on Unix/Linux
KB440730: How to install and use fonts for Dossiers/VI Dashboards and the Export Engine above Strategy Intelligence Server Universal 10.6 on Unix/Linux
KB237739: How do fonts work in PDF Exports from Strategy Web 9.4.1 and newer
KB439777