Change the font to a locally installed one

Hi, I’m trying to change the font in my figure to Times New Roman.
The font is installed in the user space (~/.local/share/Times New Roman.ttf)
When I run matplotlib.font_manager.findSystemFonts(fontpaths=None, fontext=‘ttf’) I get […, ‘/home/USERNAME/.local/share/fonts/Times New Roman.ttf’, …] so the font is installed.

I change the font in plotly with:
fig.update_layout(
template=‘plotly_white’,
width=350, height=200, margin=dict(l=0, r=0, t=0, b=0),
font=dict(
family=“Times New Roman”,
size=10,
color=“Black”
)
)

However, the font doesn’t change when I save the figure with kaleido

Hey @Hadar welcome to the community!

This is a known issue, we had some topics about that in the past. This one for example:

In general I would try to omit using kaleido wherever possible, specially if your OS is Windows.