-
-
Save charithmadhuranga/5ee932b49631b9f5172c2d2383e631d8 to your computer and use it in GitHub Desktop.
Use custom fonts in Home Assistant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /config/configuration.yaml | |
| ... | |
| lovelace: | |
| mode: yaml | |
| resources: | |
| - url: /local/myfont.css | |
| type: css | |
| ... | |
| frontend: | |
| themes: | |
| change_font: | |
| paper-font-body1_-_font-family: myfont |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| /config/www/myfont.css | |
| Also need /config/www/myfont.ttf | |
| or whatever file format it is, could be several. | |
| src: may need to be adjusted with a format() function or so - check the font docs. | |
| --> | |
| @font-face { | |
| font-family: "myfont"; | |
| src: url("/local/myfont.ttf"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment