# Font change works in Chrome, not Firefox

**URL:** <https://discourse.jupyter.org/t/font-change-works-in-chrome-not-firefox/27654>\
**Category:** JupyterLab\
**Tags:** jupyterlab, help-wanted, notebook\
**Created:** [August 17, 2024, 11:04pm UTC](https://discourse.jupyter.org/t/font-change-works-in-chrome-not-firefox/27654 "2024-08-17T23:04:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andendporant](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@andendporant](https://discourse.jupyter.org/u/andendporant)\
**Post date:** [August 17, 2024, 11:04pm UTC](https://discourse.jupyter.org/t/font-change-works-in-chrome-not-firefox/27654/1 "2024-08-17T23:04:34Z")

</div>

I changed the font in Settings \> Theme \> code-font-family

In Firefox, it works if I change it to Courier New, or something else that is pre-installed. If I change it to something I installed myself, Hack Nerd Font, it does not.

However, it works in Chrome.

I found this: [On Firefox browser this is also happening. It is not showing the fonts correctly. Any suggestions apart from refreshing browser and restarting the kernel? The anonymous pro working fine in my VSCode . · Issue #6096 · jupyter/notebook · GitHub](https://github.com/jupyter/notebook/issues/6096)

But the box was already ticked.  
I tried refreshing Firefox, no change, it just defaults to some other font.

Since I use Firefox for work and Chrome for personal, I’d prefer having Lab in Firefox.

---

<div class="post-metadata">

**Author:** ![krassowski](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/krassowski/32/1685_2.png) [@krassowski](https://discourse.jupyter.org/u/krassowski)\
**Post date:** [August 18, 2024, 2:24pm UTC](https://discourse.jupyter.org/t/font-change-works-in-chrome-not-firefox/27654/2 "2024-08-18T14:24:13Z")

</div>

This is unlikely to be a problem with JupyterLab but instead with Firefox not picking up the fonts that you have installed. In particular, Firefox with enhanced privacy protection will prevent websites from using user-installed fonts because this allows some malicious website to guess who you are based on which unique collections of fonts you installed (well, maybe not by fonts alone, but fonts + similar kind of information, like screens size, etc).

I would suggest you check how to relax this protection in Firefox if you wish websites to use fonts that you installed yourself. Alternatively you may wish to try [JupyterLab Desktop](https://github.com/jupyterlab/jupyterlab-desktop).

---

<div class="post-metadata">

**Author:** ![andendporant](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@andendporant](https://discourse.jupyter.org/u/andendporant)\
**Post date:** [August 18, 2024, 5:04pm UTC](https://discourse.jupyter.org/t/font-change-works-in-chrome-not-firefox/27654/3 "2024-08-18T17:04:31Z")

</div>

I didn’t know about desktop version, thanks, I’ll check it out!

I saw a different suggestion about switching something in about:config of Firefox, but it didn’t work.  
What worked was switching Monospace font in Advanced font settings. I hope this (somewhat) helps anyone in the future.

---

<div class="post-metadata">

**Author:** ![AmitSingh](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/amitsingh/32/19733_2.png) [@AmitSingh](https://discourse.jupyter.org/u/AmitSingh)\
**Post date:** [August 11, 2025, 5:04am UTC](https://discourse.jupyter.org/t/font-change-works-in-chrome-not-firefox/27654/4 "2025-08-11T05:04:53Z")

</div>

To get this working in Firefox, I had to go to Firefox Settings \> Privacy & Security

- change Strict to Custom

- change Suspected fingerprinters to 'Only in private windows’

Source of information: Suspected Fingerprinters in [firefox-protection-against-fingerprinting](https://support.mozilla.org/en-US/kb/firefox-protection-against-fingerprinting). It mentions that local fonts will not be used to render fonts. Maybe, one should not do it for the reason mentioned in the article, but the trade offs looked okay to me.

Here’s an image of my current settings:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/3X/a/f/afdf677a39327f0ab389943f9c33cb703d56d996.jpeg)
