CSS is not changing font-text-size when set as the cssclass for the note

What I’m trying to do

I’ve just noticed that one of my custom css files for my notes has most of the correct css appearing in the note in Obsidian, however it appears that the Font size in Settings > Appearance is overwriting the font-text-size property. I’ve attached the CSS file in case I’m missing something obvious

FFXIV.css (858 Bytes)

Things I have tried

I’ve checked the documentation to ensure I was using the correct property. I’ve included !important in the css file. I’ve uninstalled and reinstalled the latest version. Turned off all custom themes and recreated the appearance.json file - however it still appears the the font size set in the Settings is overwriting all other font-text-size properties.

Actually, just found that the font-preferred-size property fixes this…

Always good to check the changelog to make sure, I guess

Try:

    --font-preferred-size: 24px;