Open xavier-GitHub76 opened 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.
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)?
Seems it'd have something to do with your headless browser configuration. Maybe playwright has a way to load up fonts?
While Superset displays the Marianne font in its web interface,
the font is not actually rendered when reporting by email. This seems to be TimesNewRoman instead.
Best regards