handle sub pixel rendering in font loader

This commit is contained in:
Gabor Kiss-Vamosi
2020-10-01 13:28:19 +02:00
parent f6df9b490e
commit 8bed30db34
2 changed files with 2 additions and 2 deletions

View File

@@ -3,9 +3,9 @@
## v7.6.1 (06.10.2020) ## v7.6.1 (06.10.2020)
### Bugfixes ### Bugfixes
-
- Fix BIDI support in dropdown list - Fix BIDI support in dropdown list
- Fix copying base dir in `lv_obj_create` - Fix copying base dir in `lv_obj_create`
- Handle sub pixel rendering is font loader
## v7.6.0 (22.09.2020) ## v7.6.0 (22.09.2020)

View File

@@ -512,7 +512,7 @@ static bool lvgl_load_font(lv_fs_file_t * fp, lv_font_t * font)
font->line_height = font_header.ascent - font_header.descent; font->line_height = font_header.ascent - font_header.descent;
font->get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt; font->get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt;
font->get_glyph_bitmap = lv_font_get_bitmap_fmt_txt; font->get_glyph_bitmap = lv_font_get_bitmap_fmt_txt;
font->subpx = LV_FONT_SUBPX_NONE; font->subpx = font_header.subpixels_mode;
font_dsc->bpp = font_header.bits_per_pixel; font_dsc->bpp = font_header.bits_per_pixel;
font_dsc->kern_scale = font_header.kerning_scale; font_dsc->kern_scale = font_header.kerning_scale;