apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
63.03k stars 13.96k forks source link

Marianne Font is not render in email report #31147

Open xavier-GitHub76 opened 4 days ago

xavier-GitHub76 commented 4 days ago

While Superset displays the Marianne font in its web interface,

image

the font is not actually rendered when reporting by email. This seems to be TimesNewRoman instead.

image

Best regards

dosubot[bot] commented 4 days ago

Superset's email reports include CSS styling that affects font rendering, but there is no explicit configuration for the font family in the email reports. The CSS used in the email reports specifies styles for elements like tables and images, but it does not define a specific font family, which might lead to a default font like Times New Roman being used if the desired font is not specified or available [1].

Additionally, Superset uses external libraries such as @fontsource/fira-code and @fontsource/inter for font loading, but these are likely used in the web interface rather than in email reports [2].

To ensure the Marianne font is used in email reports, you may need to explicitly include it in the email's CSS or ensure that the email client supports the font.

To continue talking to Dosu, mention @dosu.

rusackas commented 4 days ago

Can you share how you added the Marianne font family? Are you getting any errors (e.g. content security policy errors preventing loading of the font)?

mistercrunch commented 3 days ago

Seems it'd have something to do with your headless browser configuration. Maybe playwright has a way to load up fonts?