ESPHome 2025.3.0 - TrueType fonts no longer scale and cause compile errors

A note of caution if you use .ttf files in your ESPHome project, some fonts are reporting errors on compile, report that a particular size is not available and also failing even if a listed size is used.

See issue raised: Font size checking issue · Issue #6880 · esphome/issues · GitHub

Just guessing but may be related to: [font] Fix issues with bitmap fonts by clydebarrow · Pull Request #8407 · esphome/esphome · GitHub or maybe [font] Use freetype instead of Pillow for font rendering by clydebarrow · Pull Request #8300 · esphome/esphome · GitHub

Looking for workarounds or a fix - otherwise I will have to leave my display projects on an older version. :smiley:

This appears to be an issue only when both bitmap and vector fonts are in the same file. Clyde has fixed it in PR#8443, include that as an external component and it will compile fine.

external_components:
  - source: github://pr#8443
    components: [font]

I assume it will be in an upcoming ESPHome release.

1 Like