You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing this definition in fonts included in the lvgl repo master branch:
/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
constlv_font_t lv_font_montserrat_18 = {
#elselv_font_t lv_font_montserrat_18 = {
#endif
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
.line_height = 21, /*The maximum line height required by the font*/
.base_line = 4, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
.underline_position = -1,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
However, when I generate a font using this repo (npx github:lvgl/lv_font_conv ...) then the definition looks like this:
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
constlv_font_t inter_tight_bold_18 = {
#elselv_font_t inter_tight_bold_18 = {
#endif
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
.line_height = 23, /*The maximum line height required by the font*/
.base_line = 5, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
.underline_position = -3,
.underline_thickness = 1,
#endif
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};
So it seems the generation of the version check needs an update?
The text was updated successfully, but these errors were encountered:
I'm seeing this definition in fonts included in the lvgl repo
master
branch:However, when I generate a font using this repo (
npx github:lvgl/lv_font_conv ...
) then the definition looks like this:So it seems the generation of the version check needs an update?
The text was updated successfully, but these errors were encountered: