# Custom fonts stopped working in 1.43

**URL:** <https://discuss.streamlit.io/t/custom-fonts-stopped-working-in-1-43/94177>\
**Category:** Using Streamlit\
**Tags:** html, debugging\
**Created:** [March 6, 2025, 2:44pm UTC](https://discuss.streamlit.io/t/custom-fonts-stopped-working-in-1-43/94177 "2025-03-06T14:44:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdykes](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tdykes](https://discuss.streamlit.io/u/tdykes)\
**Post date:** [March 6, 2025, 2:44pm UTC](https://discuss.streamlit.io/t/custom-fonts-stopped-working-in-1-43/94177/1 "2025-03-06T14:44:41Z")

</div>

I have an app that uses custom fonts, its currently deployed to Azure using 1.41. I was about to push a new branch today and though it would be good time to update to 1.43 (I wanted that timezone support). I did a pip install --upgrade streamlit in my local venv. When i launched the app under 1.43 my custom font was gone. I used pip to go back to 1.41 and the font was correctly rendered again. When i launched in 1.43 i didn’t get the standard streamlit font, i instead got some ‘Time New Roman -like’ serif font, so i assume its trying to render my custom font but can’t and falling back to the browser default.

My code is:

```auto
css_path = 'assets/styles/style.css'
with open(css_path) as css:
        st.markdown(f'<style>{css.read()}</style>', unsafe_allow_html=True)

```

style.css:

```auto
@font-face {
    font-family: 'My Custom Font';
    src: url('../fonts/my_custom_font.otf') format('opentype');
}
h1 {
    font-family: 'My Custom Font', sans-serif !important;
}
h3 {
    font-family: 'My Custom Font', sans-serif !important;
}

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![adamgoldfarb](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/adamgoldfarb/32/57017_2.png) [@adamgoldfarb](https://discuss.streamlit.io/u/adamgoldfarb)\
**Post date:** [March 6, 2025, 10:38pm UTC](https://discuss.streamlit.io/t/custom-fonts-stopped-working-in-1-43/94177/2 "2025-03-06T22:38:44Z")

</div>

Confirmed that I have the same issue, but it only appears to be a problem in dataframe and data\_editor views.

---

<div class="post-metadata">

**Author:** ![adamgoldfarb](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/adamgoldfarb/32/57017_2.png) [@adamgoldfarb](https://discuss.streamlit.io/u/adamgoldfarb)\
**Post date:** [March 7, 2025, 12:02am UTC](https://discuss.streamlit.io/t/custom-fonts-stopped-working-in-1-43/94177/3 "2025-03-07T00:02:15Z")

</div>

I can also confirm that pinning to 1.42 resolves the issue, so I’ll be doing that for now. Thanks in advance for any guidance, streamlit team, and let me know if you need additional info

---

<div class="post-metadata">

**Author:** ![DirkRemmers](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/dirkremmers/32/48519_2.png) [@DirkRemmers](https://discuss.streamlit.io/u/DirkRemmers)\
**Post date:** [March 7, 2025, 2:22pm UTC](https://discuss.streamlit.io/t/custom-fonts-stopped-working-in-1-43/94177/4 "2025-03-07T14:22:33Z")

</div>

You can get the default streamlit font back by adding the following to the config.toml in the streamlit folder in your app directory:

> [theme]  
> font=“Source Sans Pro”

That should help for now, until they fix the bug.

---

<div class="post-metadata">

**Author:** ![Thomas9](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/thomas9/32/51539_2.png) [@Thomas9](https://discuss.streamlit.io/u/Thomas9)\
**Post date:** [March 7, 2025, 3:02pm UTC](https://discuss.streamlit.io/t/custom-fonts-stopped-working-in-1-43/94177/5 "2025-03-07T15:02:59Z")

</div>

Hey there, commenting the line also worked fine for me (same as source sans pro)

---

<div class="post-metadata">

**Author:** ![mathcatsand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/mathcatsand/32/48006_2.png) [@mathcatsand](https://discuss.streamlit.io/u/mathcatsand)\
**Post date:** [March 26, 2025, 4:29pm UTC](https://discuss.streamlit.io/t/custom-fonts-stopped-working-in-1-43/94177/6 "2025-03-26T16:29:31Z")

</div>

FYI, Streamlit just released official support for custom fonts with 1.44.0. See `theme.fontFaces`.

> **[config.toml - Streamlit Docs](https://docs.streamlit.io/develop/api-reference/configuration/config.toml#theme)**

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [September 22, 2025, 4:30pm UTC](https://discuss.streamlit.io/t/custom-fonts-stopped-working-in-1-43/94177/7 "2025-09-22T16:30:16Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
