[BUG] Inconsistent font weight across themes that could imply residual code

I was inially going to post this on the Minimal Theme Github Repository, but after much thought. I have no idea if this is an Obsidian Issue or a theme issue.

I’m using Obsidian on both Desktop and App with the Minimal theme, and set “Inter” my preferred typeface.
I was surprised when I found that in the App the typeface was also synced. But then I striked on those things that ruin the experience.
With the Minimal theme (tested with Default and California Coast) Inter has some kind of conflicts with its italic version. The text rendered looks like a 700 instead of the preffered value. There are no css snippets enabled for this test.

Tweaking with the css does not work, so I ended up concluding that the theme was fetching Inter from somewhere and overriding my installed copy or something even weirder. I can confirm this happens in both Source Mode and Live Edit.

imagen
Here we can see a paragraph with fat italics in Reading Mode.

imagen
The text is dealing with the same issue in Source Mode.


I confirm with the Developer Tools if somehow this is set to 700 or so. Nope.


Ironically, manually changing the value to 700 affects the rest of the body. Same thing with 900.


Something interesting. When I set the weight value to the absolute minimum (100), the italics are showing what seems to be an additional weight. They appear like 400 now!


Yup, body weight italics are fine.


There isn’t any weight change with 500. This is where I start thinking something is overriding my installed fonts. I confirm I can use Inter 500 on any other app without issue.

imagen
With California Coast.

imagen
And finally with the Obsidian Default theme.


So, Okay, I have no idea what is going on. At this point I enable Safe mode and start checking. This changes the font to Segoe as the Style Settings plugin was disabled. I manually change the font to Inter again, just to check. And there is. Still.
NOTE: Segoe UI Bold Italic is not afected, just the text set in Inter is. I can use whatever typography I see fit but Inter. Obsidian won’t let me use all installed weights of this typeface.

Help, please.


This is a screenshot from my phone, as you can see, this happens across devices.
I have not installed Inter in my phone.

This is not a Minimal theme issue because it also happens with the default theme.

The issue seems to be that the version of Inter that ships with Obsidian doesn’t contain the 600 weight italic variation.

The default bold weight in Obsidian is 700, whereas the default bold weight in Minimal is 600. That’s why there is a discrepancy.

If you use a snippet to set --bold-weight:700 the fonts will be consistent in bold vs. bold italic in Minimal

Thanks! these kinds of issues bother me more than they should.
I tried before posting setting it to 600nad as you comment it didn’t work. Is this a thing the devs could fix by shipping the missing font files, or there is any workaround we can do to force Obsidian to load local fonts?

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