1 /** 2 * @file lv_font_manager_utils.h 3 * 4 */ 5 #ifndef LV_FONT_MANAGER_UTILS_H 6 #define LV_FONT_MANAGER_UTILS_H 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 /********************* 13 * INCLUDES 14 *********************/ 15 16 #include "../../misc/lv_types.h" 17 18 #if LV_USE_FONT_MANAGER 19 20 #include "../../libs/freetype/lv_freetype.h" 21 22 /********************* 23 * DEFINES 24 *********************/ 25 26 /********************** 27 * TYPEDEFS 28 **********************/ 29 30 typedef struct { 31 const char * name; 32 lv_freetype_font_render_mode_t render_mode; 33 lv_freetype_font_style_t style; 34 uint32_t size; 35 } lv_freetype_info_t; 36 37 /********************** 38 * GLOBAL PROTOTYPES 39 **********************/ 40 41 /** 42 * Compare font information. 43 * @param ft_info_1 font information 1. 44 * @param ft_info_2 font information 2. 45 * @return return true if the fonts are equal. 46 */ 47 bool lv_freetype_info_is_equal(const lv_freetype_info_t * ft_info_1, const lv_freetype_info_t * ft_info_2); 48 49 /********************** 50 * MACROS 51 **********************/ 52 53 #endif /*LV_USE_FONT_MANAGER*/ 54 55 #ifdef __cplusplus 56 } /*extern "C"*/ 57 #endif 58 59 #endif /* LV_FONT_MANAGER_UTILS_H */ 60