mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 07:28:10 +01:00
[font] Be more explanatory in missing glyph error message
This commit is contained in:
parent
ef7c5c6055
commit
a1ec50ed24
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ def check_missing_glyphs(file, codepoints: Iterable, warning: bool = False):
|
|||
)
|
||||
if count > 10:
|
||||
missing_str += f"\n and {count - 10} more."
|
||||
message = f"Font {Path(file).name} is missing {count} glyph{'s' if count != 1 else ''}:\n {missing_str}"
|
||||
message = f"Font {Path(file).name} is missing {count} glyph{'s' if count != 1 else ''}:\n {missing_str}\nESPHome version 2024.11.0 introduced testing for missing glyphs in the compilation phase. Missing glyphs are most likely a problem of the font itself."
|
||||
if warning:
|
||||
_LOGGER.warning(message)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue