streamlit-option-menu icon indicating copy to clipboard operation
streamlit-option-menu copied to clipboard

Load fonts

Open DaBisounours opened this issue 2 years ago • 2 comments

Hello there, amazing work so far ! Is it possible to load fonts ? I managed to change fonts in my streamlit app, but the fonts are not loaded by the browser in the streamlit-option-menu iframe... We could have a parameter such as the following:

stom.option_menu(
    ...,
    fonts=['<url of a font>', '<another font url>'],
)

Thanks in advance for your response !

DaBisounours avatar Aug 30 '22 16:08 DaBisounours

Hello You can change fonts in config.toml file . for e.g - font="sans serif"

dev856 avatar Jul 17 '23 04:07 dev856

I tried this solution, but was only able to use one of the three fonts built into streamlit, but the OP (and me) are trying to load in a custom font.

henry808 avatar Feb 04 '24 02:02 henry808