Skip to content

Commit 311eb65

Browse files
authored
Merge pull request #120 from MallocArray/font_rendering
Fix font rendering on full_configs
2 parents 1a5ca6e + 26f3624 commit 311eb65

File tree

3 files changed

+31
-77
lines changed

3 files changed

+31
-77
lines changed

full_config/ag-basic.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,13 @@ switch:
371371
disabled_by_default: false
372372
assumed_state: false
373373
font:
374-
- file:
375-
path: /config/.esphome/font/Open Sans@700@[email protected]
376-
type: gfonts
377-
id: font1
378-
size: 22
379-
glyphs:
380-
- '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
381-
glyphsets: []
382-
ignore_missing_glyphs: false
383-
bpp: 1
384-
extras: []
374+
- file:
375+
type: gfonts
376+
family: Open Sans
377+
weight: bold
378+
id: font1
379+
size: 22
380+
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
385381
display:
386382
- platform: ssd1306_i2c
387383
model: SSD1306_64X48

full_config/ag-one.yaml

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -513,39 +513,18 @@ switch:
513513
disabled_by_default: false
514514
assumed_state: false
515515
font:
516-
- file:
517-
path: /config/.esphome/font/Open Sans@400@[email protected]
518-
type: gfonts
519-
id: open_sans_14
520-
size: 14
521-
glyphs:
522-
- '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
523-
glyphsets: []
524-
ignore_missing_glyphs: false
525-
bpp: 1
526-
extras: []
527-
- file:
528-
path: /config/.esphome/font/Open Sans@400@[email protected]
529-
type: gfonts
530-
id: open_sans_9
531-
size: 9
532-
glyphs:
533-
- '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
534-
glyphsets: []
535-
ignore_missing_glyphs: false
536-
bpp: 1
537-
extras: []
538-
- file:
539-
path: /config/.esphome/font/Open Sans@400@[email protected]
540-
type: gfonts
541-
id: open_sans_20
542-
size: 20
543-
glyphs:
544-
- '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
545-
glyphsets: []
546-
ignore_missing_glyphs: false
547-
bpp: 1
548-
extras: []
516+
- file: "gfonts://Open Sans"
517+
id: open_sans_14
518+
size: 14
519+
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
520+
- file: "gfonts://Open Sans"
521+
id: open_sans_9
522+
size: 9
523+
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
524+
- file: "gfonts://Open Sans"
525+
id: open_sans_20
526+
size: 20
527+
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
549528
display:
550529
- platform: ssd1306_i2c
551530
model: SH1106_128X64

full_config/ag-pro.yaml

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -450,39 +450,18 @@ switch:
450450
disabled_by_default: false
451451
assumed_state: false
452452
font:
453-
- file:
454-
path: /config/.esphome/font/Open Sans@400@[email protected]
455-
type: gfonts
456-
id: open_sans_14
457-
size: 14
458-
glyphs:
459-
- '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
460-
glyphsets: []
461-
ignore_missing_glyphs: false
462-
bpp: 1
463-
extras: []
464-
- file:
465-
path: /config/.esphome/font/Open Sans@400@[email protected]
466-
type: gfonts
467-
id: open_sans_9
468-
size: 9
469-
glyphs:
470-
- '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
471-
glyphsets: []
472-
ignore_missing_glyphs: false
473-
bpp: 1
474-
extras: []
475-
- file:
476-
path: /config/.esphome/font/Open Sans@400@[email protected]
477-
type: gfonts
478-
id: open_sans_20
479-
size: 20
480-
glyphs:
481-
- '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
482-
bpp: 2
483-
glyphsets: []
484-
ignore_missing_glyphs: false
485-
extras: []
453+
- file: "gfonts://Open Sans"
454+
id: open_sans_14
455+
size: 14
456+
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
457+
- file: "gfonts://Open Sans"
458+
id: open_sans_9
459+
size: 9
460+
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
461+
- file: "gfonts://Open Sans"
462+
id: open_sans_20
463+
size: 20
464+
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/µ³'
486465
display:
487466
- platform: ssd1306_i2c
488467
model: SH1106_128X64

0 commit comments

Comments
 (0)