Skip to content

Enable required fonts in sdkconfig.defaults of the project generated by Squareline (BSP-318) #166

Open
@igrr

Description

@igrr

This issue is at the boundary between ESP-BSP and Squareline, I'm filing it here for now for discussion.

Currently when we use a font in Squareline which isn't enabled by default in LVGL, the build will fail due to missing definitions. For example, if we use Monserrat size 48, CONFIG_LV_FONT_MONTSERRAT_48=y option should be enabled in sdkconfig.

This could be solved by:

  • Adding some placeholder in sdkconfig.defaults of our Squareline package
  • Squareline IDE should put the font-related settings instead of that placeholder
  • [Optional] Squareline package JSON file can define mapping between font names and the lines to be put into sdkconfig.defaults, to avoid hardcoding the Kconfig option names in Squareline

An alternative, simpler, solution:

  • Enable all the fonts in sdkconfig.defaults by default. Unused fonts will be eliminated at link time, since IDF build system uses -ffunction-sections -fdata-sections -Wl,--gc-sections options.

cc @kisvegabor @espzav

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions