Disable LV_USE_FONT_SUBPX

This commit is contained in:
fvanroie 2021-02-11 01:48:34 +01:00
parent ed33bf5f5f
commit 72a9afd6a9
2 changed files with 58 additions and 30 deletions

View File

@ -328,31 +328,50 @@ typedef void* lv_indev_drv_user_data_t; /*Type of user data in the in
* FONT USAGE * FONT USAGE
*===================*/ *===================*/
/* The built-in fonts contains the ASCII range and some Symbols with 4 bit-per-pixel. /* The built-in fonts contains the ASCII range and some Symbols with 4 bit-per-pixel.
* The symbols are available via `LV_SYMBOL_...` defines * The symbols are available via `LV_SYMBOL_...` defines
* More info about fonts: https://docs.littlevgl.com/#Fonts * More info about fonts: https://docs.lvgl.io/v7/en/html/overview/font.html
* To create a new font go to: https://littlevgl.com/ttf-font-to-c-array * To create a new font go to: https://lvgl.com/ttf-font-to-c-array
*/ */
/* Robot fonts with bpp = 4 /* Montserrat fonts with bpp = 4
* https://fonts.google.com/specimen/Roboto */ * https://fonts.google.com/specimen/Montserrat */
#define LV_FONT_MONTSERRAT_12 0 // LV_HIGH_RESOURCE_MCU #define LV_FONT_MONTSERRAT_8 0
#define LV_FONT_MONTSERRAT_16 0 // LV_HIGH_RESOURCE_MCU #define LV_FONT_MONTSERRAT_10 0
#define LV_FONT_MONTSERRAT_22 0 // LV_HIGH_RESOURCE_MCU #define LV_FONT_MONTSERRAT_12 0
#define LV_FONT_MONTSERRAT_28 0 // LV_HIGH_RESOURCE_MCU #define LV_FONT_MONTSERRAT_14 0
#define LV_FONT_MONTSERRAT_16 0
#define LV_FONT_MONTSERRAT_18 0
#define LV_FONT_MONTSERRAT_20 0
#define LV_FONT_MONTSERRAT_22 0
#define LV_FONT_MONTSERRAT_24 0
#define LV_FONT_MONTSERRAT_26 0
#define LV_FONT_MONTSERRAT_28 0
#define LV_FONT_MONTSERRAT_30 0
#define LV_FONT_MONTSERRAT_32 0
#define LV_FONT_MONTSERRAT_34 0
#define LV_FONT_MONTSERRAT_36 0
#define LV_FONT_MONTSERRAT_38 0
#define LV_FONT_MONTSERRAT_40 0
#define LV_FONT_MONTSERRAT_42 0
#define LV_FONT_MONTSERRAT_44 0
#define LV_FONT_MONTSERRAT_46 0
#define LV_FONT_MONTSERRAT_48 0
/* Demonstrate special features */ /* Demonstrate special features */
#define LV_FONT_MONTSERRAT_12_SUBPX 0 #define LV_FONT_MONTSERRAT_12_SUBPX 0
#define LV_FONT_MONTSERRAT_28_COMPRESSED 0 // LV_HIGH_RESOURCE_MCU /*bpp = 3*/ #define LV_FONT_MONTSERRAT_28_COMPRESSED 0 /*bpp = 3*/
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0 /*Hebrew, Arabic, PErisan letters and all their forms*/
#define LV_FONT_SIMSUN_16_CJK 0 /*1000 most common CJK radicals*/
/*Pixel perfect monospace font /*Pixel perfect monospace font
* http://pelulamu.net/unscii/ */ * http://pelulamu.net/unscii/ */
#define LV_FONT_UNSCII_8 0 #define LV_FONT_UNSCII_8 0
#define LV_FONT_UNSCII_16 0
/*Custom font*/ /*Custom font*/
#define UNSCII_8_ICON 1 #define UNSCII_8_ICON 1
/* Optionally declare your custom fonts here.
/* Optionally declare your custom fonts here.
* You can use these fonts as default font too * You can use these fonts as default font too
* and they will be available globally. E.g. * and they will be available globally. E.g.
* #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) \ * #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) \
@ -360,16 +379,25 @@ typedef void* lv_indev_drv_user_data_t; /*Type of user data in the in
*/ */
//#define LV_FONT_CUSTOM_DECLARE //#define LV_FONT_CUSTOM_DECLARE
/* Enable it if you have fonts with a lot of characters. /* Enable it if you have fonts with a lot of characters.
* The limit depends on the font size, font face and bpp * The limit depends on the font size, font face and bpp
* but with > 10,000 characters if you see issues probably you need to enable it.*/ * but with > 10,000 characters if you see issues probably you need to enable it.*/
#define LV_FONT_FMT_TXT_LARGE 1 #define LV_FONT_FMT_TXT_LARGE 0
/* Set the pixel order of the display. /* Enables/disables support for compressed fonts. If it's disabled, compressed
* glyphs cannot be processed by the library and won't be rendered.
*/
#define LV_USE_FONT_COMPRESSED 1
/* Enable subpixel rendering */
#define LV_USE_FONT_SUBPX 0
#if LV_USE_FONT_SUBPX
/* Set the pixel order of the display.
* Important only if "subpx fonts" are used. * Important only if "subpx fonts" are used.
* With "normal" font it doesn't matter. * With "normal" font it doesn't matter.
*/ */
#define LV_FONT_SUBPX_BGR 0 #define LV_FONT_SUBPX_BGR 0
#endif
/*Declare the type of the user data of fonts (can be e.g. `void *`, `int`, `struct`)*/ /*Declare the type of the user data of fonts (can be e.g. `void *`, `int`, `struct`)*/
typedef void* lv_font_user_data_t; typedef void* lv_font_user_data_t;

View File

@ -452,7 +452,7 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in the i
#define LV_USE_FONT_COMPRESSED 1 #define LV_USE_FONT_COMPRESSED 1
/* Enable subpixel rendering */ /* Enable subpixel rendering */
#define LV_USE_FONT_SUBPX 1 #define LV_USE_FONT_SUBPX 0
#if LV_USE_FONT_SUBPX #if LV_USE_FONT_SUBPX
/* Set the pixel order of the display. /* Set the pixel order of the display.
* Important only if "subpx fonts" are used. * Important only if "subpx fonts" are used.