Changing fonts

Hi I really hope someone could help me, how do I change fonts on Obsidian I do know it uses fonts from my system I use Fedora 42. And I just installed more system fonts into my own system. But why do I not seem them anywhere in Obsidian desktop app. How do I refresh if there is such thing. I have tried for several days but still no luck. I use Gnome desktop environment and I added more fonts from Software app. And then I seem them in the Gnome font folder, but not in Obsidian menu appearance ?

On Mac, I generally have to relaunch Obsidian for it to detect a font I just installed while Obsidian was open :blush: …

I know nothing about how it could work on Linux though :sweat_smile:

1 Like

I don’t really use Fedora or Gnome, and I don’t know the exact details on which fontconfigs is relevant to your specific system, but I would start by querying the fontconfig cache to see if your fonts are visible, and also get the correct name for the font.

First, you can update the fontconfig by running

fc-cache -fv

Note that this updates your local user fontconfig cache. You shouldn’t be running Obsidian as root, but if you do, then running it as root would update the global fontconfig cache. Next, you can search for your font using fc-match. I usually run it with the --sort and --all arguments, so that I can see a list of all results.

1 Like

Oh, one more thing: the type of font you have installed can make a difference, too. Make sure it’s a font file format that Electron can render, too. It should be OK if you’re using somewhat new font file format, but you can’t use bitmap fonts, for instance.

When all else fails, you can always import a font using @font-face in CSS, in this case, try to import a woff2 font.

1 Like

Hi thank you very much, I use the ootf and ttf formats, and I created a font folder inside my vault but Obsidian can find anything. So I just tried your command line and It did clear cache and all that, And then I restarted Obsidian but nothing beside the same boring fonts.