✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Custom font in plotly

I am trying to use custom fonts in plotly python. How does plotly recognize what fonts are available in the system? Can anyone direct me to the relevant functions/modules?

hi @il_kievic welcome to the Dash Plotly community.

You can find more information here:

They seem to be:
“Arial”, “Balto”, “Courier New”, “Droid Sans”, “Droid Serif”, “Droid Sans Mono”, “Gravitas One”, “Old Standard TT”, “Open Sans”, “Overpass”, “PT Sans Narrow”, “Raleway”, “Times New Roman”.

@nicolaskruchten is this correct, or is the font list only referring to the Chart Studio Cloud?

Thanks for your reply! Unfortunately I don’t think this is what I need. My understanding is that plotly is able to render the locally installed fonts that are outside of these html font family. However, I don’t know how it is able to access this information. Is it reading into the system font path and then construct a list of “usable fonts”?