Hello, For a few days, I have been having issues ...
# gooddata-cloud
c
Hello, For a few days, I have been having issues exporting a PDF of the dashboard (one-shot or scheduled). I get the error below. It was working before.
java.lang.IllegalStateException: No suitable font found.
k
The error message
java.lang.IllegalStateException: No suitable font found.
during PDF export of a dashboard is most likely related to a font configuration issue in your GoodData environment. Based on the knowledge sources, here are the most relevant points and troubleshooting steps: 1. Font Configuration in Themes: If you have recently changed or customized the theme, especially the
typography
section, ensure that the font names are correct and that both regular and bold variants are defined. For local fonts, the correct format is
"font": "local(Times New Roman)"
(note the correct spelling and case). For external fonts, use the absolute URL and ensure both
font
and
fontBold
are specified. Missing or incorrectly specified fonts can cause export failures, as the PDF generator requires a valid font to render the document [[Theme Settings Reference – Fonts](https://www.gooddata.com/docs/cloud/customize-appearance/create-custom-themes/theme-settings-reference/#defining-fonts)]. 2. Content Security Policy (CSP): If you are using a custom font hosted externally, make sure the font’s domain is included in your CSP settings. Only fonts from
<https://fonts.gstatic.com/>
are allowed by default. If your font is hosted elsewhere, update your CSP accordingly, or the browser (and the export service) may not be able to load the font, resulting in errors [[Theme Settings Reference – Fonts](https://www.gooddata.com/docs/cloud/customize-appearance/create-custom-themes/theme-settings-reference/#fonts)]. 3. Recent Theme Changes: There are community reports where a typo in the font name (e.g., "Time New Roman" instead of "Times New Roman") caused the dashboard to fall back to the default font or fail to apply the custom font. Double-check your theme configuration for such issues [[Slack Thread: Font Not Applied](https://gooddataconnect.slack.com/archives/C04S1MSLEAW/p1731264607508809?thread_ts=1731264607.508809&amp;cid=C04S1MSLEAW)]. 4. PDF Export Font Support: The PDF export engine may have limitations on which fonts are supported or embedded. If you are using a custom font, try reverting to a standard font (like Arial or Times New Roman) to see if the export succeeds. Recommended Actions: - Review your theme’s
typography
section for correct font names and ensure both
font
and
fontBold
are set. - If using an external font, verify the CSP settings include the font’s domain. - Test exporting with a standard font to isolate if the issue is with the custom font. - If the issue persists after these checks, contact GoodData support with your theme configuration and CSP settings for further assistance. If you need more specific guidance, please share your current theme configuration (especially the
typography
section) and any recent changes you made. Let me know if you need help reviewing your theme JSON or CSP settings!
j
Troubleshooting Steps: • If you are using a custom theme, verify that both
font
and
fontBold
are set and that the font files are accessible. • Check your CSP settings to ensure any external font domains are allowed. • If possible, revert to the default theme or font and test the export again. • If you are exporting a table, remember that the font is not customizable and should default to
DejaVu-Sans
.
If you have not applied any custom fonts or themes, could you please provide a link to the dashboard or table you are trying to export so we can investigate further?
c
We are using the following custom font (working fine on the dashboards themselves). The only issue is with the pdf extraction (it was working fine 2 weeks ago). "font": "url(https://cdn.jsdelivr.net/fontsource/fonts/figtree@latest/latin-500-normal.woff2)", "fontBold": "url(https://cdn.jsdelivr.net/fontsource/fonts/figtree@latest/latin-600-normal.woff2)" CSP : font-src 'self' data: cdn.jsdelivr.net;
j
Thank you so much for the details and confirmation. Could you please provide a link to the dashboard iteslf so we can look into it?
I was able to upload the same font, but I don't have issues with the export from my personal organization.
For example on this one. Both export to pdf or scheduled pdf export are not working.
j
Hi Clement, I just wanted to let you know that I was able to make a copy of the dashboard and then removed all the images from it and it was able to export. Nevertheless, this seems buggy and I have escalated it to our L2 Technical Support team for further handling of the case.
c
thanks
images: you mean emoticons?
@Simon Delolme fyi
j
yes, that is correct. the emoticons
j
Hi Clement, the issue with export dashboards to PDF was reported to our engineering. There is no specific ETA for a fix yet though. Please let us know if you have any questions
1