1 /** 2 * @file lv_tiny_ttf.h 3 * 4 */ 5 6 #ifndef LV_TINY_TTF_H 7 #define LV_TINY_TTF_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 #include "../../../lvgl.h" 17 18 #if LV_USE_TINY_TTF 19 20 /********************* 21 * DEFINES 22 *********************/ 23 24 /********************** 25 * TYPEDEFS 26 **********************/ 27 28 /********************** 29 * GLOBAL PROTOTYPES 30 **********************/ 31 32 #if LV_TINY_TTF_FILE_SUPPORT 33 /* create a font from the specified file or path with the specified line height.*/ 34 lv_font_t * lv_tiny_ttf_create_file(const char * path, lv_coord_t font_size); 35 36 /* create a font from the specified file or path with the specified line height with the specified cache size.*/ 37 lv_font_t * lv_tiny_ttf_create_file_ex(const char * path, lv_coord_t font_size, size_t cache_size); 38 #endif /*LV_TINY_TTF_FILE_SUPPORT*/ 39 40 /* create a font from the specified data pointer with the specified line height.*/ 41 lv_font_t * lv_tiny_ttf_create_data(const void * data, size_t data_size, lv_coord_t font_size); 42 43 /* create a font from the specified data pointer with the specified line height and the specified cache size.*/ 44 lv_font_t * lv_tiny_ttf_create_data_ex(const void * data, size_t data_size, lv_coord_t font_size, size_t cache_size); 45 46 /* set the size of the font to a new font_size*/ 47 void lv_tiny_ttf_set_size(lv_font_t * font, lv_coord_t font_size); 48 49 /* destroy a font previously created with lv_tiny_ttf_create_xxxx()*/ 50 void lv_tiny_ttf_destroy(lv_font_t * font); 51 52 /********************** 53 * MACROS 54 **********************/ 55 56 #endif /*LV_USE_TINY_TTF*/ 57 58 #ifdef __cplusplus 59 } /*extern "C"*/ 60 #endif 61 62 #endif /*LV_TINY_TTF_H*/ 63