I have installed a theme called Noctis from HACS. What I describe happens on all themes with included fonts that I have tried, not not specific to Noctis.
The Noctis theme has a file called noctis.yaml in directory /themes/noctis/
I have added the following to Lovelace Resources (Configuration / Lovelace Dashboards / Resources: https://fonts.googleapis.com/css?family=Raleway (Stylesheet)
When I change a Lovelace dashboard to this theme I get all the colors etc. so it appears to be loaded.
Not all (most donāt) of the cards get the Raleway font. The only card that I have added that takes the Raleway font is the custom:battery-state-card. Even with the battery-state-card only the heading gets Raleway. The rest of it below the heading (āBattery Levelsā in the screenshot) is the default font.
Other cards remain on the default font.
I can use card-mod to change the font to Raleway and it works. But, that is a lot of work on every card on every dashboard.
Any ideas on what Iām doing wrong / what I can do to fix it?
Iām also having the same issue where the custom fonts are only showing in the headings. Using card-mod works but assigning the fonts directly in theme doesnāt work āproperlyā.
Seems like I am missing something / would be an easy fix. Anybody have suggestions?
Download the fonts from google fonts putting it in your config/www/fonts folder (create if need be) .
Once thatās done, pop it in your config/www folder and then add a link in your resources to both the local.css and the font (raleway.css) as a style sheet.
If you already have an existing stylesheet, add what you are missing to the above. Hopefully that solves things if you havenāt figured it out for yourself.
Just add this code in the themes style sheet, just change the name of the font that you want to use, (you have to preaviously get it at google the font link an add it to resource)
Thank you, it really works. Moreover, if you add fonts via a link from Google Fonts, you can get by with just creating the aforementioned style.css file without downloading the font. I would mark this as a solution, although it requires a minor adjustment (The headings added in the 2024.10 release still use the default font, but I believe this will be fixed in the future).