mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
a043022444
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
font:
|
|
- file:
|
|
type: gfonts
|
|
family: "Roboto"
|
|
weight: bold
|
|
italic: true
|
|
size: 32
|
|
id: roboto32
|
|
|
|
- file: "gfonts://Roboto"
|
|
id: roboto
|
|
size: 20
|
|
glyphs: "0123456789."
|
|
extras:
|
|
- file: "gfonts://Roboto"
|
|
glyphs: ["\u00C4", "\u00C5", "\U000000C7"]
|
|
- file: "gfonts://Roboto"
|
|
id: roboto_web
|
|
size: 20
|
|
- file: "gfonts://Roboto"
|
|
id: roboto_greek
|
|
size: 20
|
|
glyphs: ["\u0300", "\u00C5", "\U000000C7"]
|
|
- file: "https://github.com/IdreesInc/Monocraft/releases/download/v3.0/Monocraft.ttf"
|
|
id: monocraft
|
|
size: 20
|
|
- file:
|
|
type: web
|
|
url: "https://github.com/IdreesInc/Monocraft/releases/download/v3.0/Monocraft.ttf"
|
|
id: monocraft2
|
|
size: 24
|
|
- file: $component_dir/Monocraft.ttf
|
|
id: monocraft3
|
|
size: 28
|
|
- file: $component_dir/MatrixChunky8X.bdf
|
|
id: special_font
|
|
glyphs:
|
|
- '"'
|
|
- "'"
|
|
- '#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz°'
|
|
|
|
- file: $component_dir/MatrixChunky8X.bdf
|
|
id: default_font
|
|
|
|
display:
|
|
- platform: sdl
|
|
id: sdl_display
|
|
dimensions:
|
|
width: 800
|
|
height: 600
|
|
lambda: |-
|
|
it.print(0, 0, id(roboto), "Hello, World!");
|
|
it.print(0, 20, id(roboto_web), "Hello, World!");
|
|
it.print(0, 40, id(roboto_greek), "Hello κόσμε!");
|
|
it.print(0, 60, id(monocraft), "Hello, World!");
|
|
it.print(0, 80, id(monocraft2), "Hello, World!");
|
|
it.print(0, 100, id(monocraft3), "Hello, World!");
|