pourmand1376 / obsidian-custom-font

A plugin to set custom font for obsidian
https://obsidian.md/plugins?id=custom-font-loader
Apache License 2.0
49 stars 1 forks source link

not apply font to math #5

Closed LukasLow closed 7 months ago

LukasLow commented 7 months ago

hello maybe i am wrong but if i leave :root empty it still applies the font. I guess i can't remove the font from parts of it. My goal is to not apply a font to math and code because of this

image

instead of a regular one

image
pourmand1376 commented 7 months ago

I've tested this now and If I leave :root like this, it would do nothing.

:root {

    }

However, you should find the appropriate CSS to apply. Maybe removing these CSS attributes one by one can help.

:root {
        --font-default: Shabnam;
        --default-font: Shabnam;
        --font-family-editor: Shabnam;
        --font-monospace-default: Shabnam,
        --font-interface-override: Shabnam,
        --font-text-override: Shabnam,
        --font-monospace-override: Shabnam, 
    }
LukasLow commented 7 months ago

I've found now the issue. In a new fresh vault the things you have said are true but "Force Style" ignores the css part and applies it in Math and Code too obsidian-font-plugin

LukasLow commented 7 months ago

made now a PR https://github.com/pourmand1376/obsidian-custom-font/pull/6

LukasLow commented 7 months ago

please test it