Closed lubeda closed 9 months ago
Windows font viewer can't see anything because there are no outlines. The only way to allow previews is to run it through some rasterization or something which would increase the file size which would create outlines but... with unpredictable results.
I'm not sure what your issue is... I even cleaned my build files, tested with your exact yaml extract, and made sure I was using the latest version of my fonts but I had no issue compiling. Are you sure you've got the most recent TTF and you're referring to the right location? That error is usually from referencing the wrong font size / the size is unavailable in the TTF file. Is it possible your renamed 6 to 8?
The size: 8
part is mandatory for these TTF files. Are you sure it's there? Check for some invisible characters that may be causing problems...?
This works, the size:
must match the height of the font.
- file: MatrixChunky8.ttf
id: default_font
glyphs: |
! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz°
size: 8
- file: MatrixChunky6.ttf
id: special_font
size: 6
glyphs: |
! "#$%&'()*€+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz°
Information
Hi, besides the positive vibes, i found an issue.
On compiling the latest EspHoMaTriX with your TTFs i got this error:
ERROR Could not load truetype file /config/esphome/MatrixChunky8.ttf: invalid pixel size
In the windows TTF viewer, they are all white
Relevant log output
No response