mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-10 10:11:29 +01:00
display font: document using gfonts:// for icons (#2883)
Added example showing how to use gfonts to download icons. It seems it is not widely known. Co-authored-by: H. Árkosi Róbert <robreg@zsurob.hu>
This commit is contained in:
parent
f5d86c33c2
commit
022d32c63d
@ -184,6 +184,11 @@ Next, create a ``font:`` section in your configuration:
|
|||||||
|
|
||||||
- file: "fonts/tom-thumb.bdf"
|
- file: "fonts/tom-thumb.bdf"
|
||||||
id: tomthumb
|
id: tomthumb
|
||||||
|
|
||||||
|
- file: 'gfonts://Material+Symbols+Outlined'
|
||||||
|
id: icon_font_50
|
||||||
|
size: 50
|
||||||
|
glyphs: ["\U0000e425"] # mdi-timer
|
||||||
|
|
||||||
display:
|
display:
|
||||||
# ...
|
# ...
|
||||||
@ -197,7 +202,8 @@ Configuration variables:
|
|||||||
|
|
||||||
**Google Fonts**:
|
**Google Fonts**:
|
||||||
|
|
||||||
Each Google Font will be downloaded once and cached for future use.
|
Each Google Font will be downloaded once and cached for future use. This can also be used to download Material
|
||||||
|
Symbols or Icons as in the example above.
|
||||||
|
|
||||||
- **family** (**Required**, string): The name of the Google Font family.
|
- **family** (**Required**, string): The name of the Google Font family.
|
||||||
- **weight** (*Optional*, enum): The weight of the font. Can be either the text name or the integer value:
|
- **weight** (*Optional*, enum): The weight of the font. Can be either the text name or the integer value:
|
||||||
|
Loading…
Reference in New Issue
Block a user