lv_tiny_ttf.h
API reference for lv_tiny_ttf.h
Summary
Functions
public/font/lv_tiny_ttf.h:92function
lv_tiny_ttf_set_size
Set the size of the font to a new font_size
void lv_tiny_ttf_set_size(lv_font_t *font, int32_t font_size)| Name | Type | Description |
|---|---|---|
font | lv_font_t * | the font object |
font_size | int32_t | the font size in pixel |
the font bitmap cache and glyph cache will be flushed.
public/font/lv_tiny_ttf.h:72function
lv_tiny_ttf_create_data
Create a font from the specified data pointer with the specified line height.
lv_font_t * lv_tiny_ttf_create_data(const void *data, size_t data_size, int32_t font_size)| Name | Type | Description |
|---|---|---|
data | const void * | the data pointer |
data_size | size_t | the data size |
font_size | int32_t | the font size in pixel |
Returns: lv_font_t * — a font object
public/font/lv_tiny_ttf.h:83function
lv_tiny_ttf_create_data_ex
Create a font from the specified data pointer with the specified line height and the specified cache size.
lv_font_t * lv_tiny_ttf_create_data_ex(const void *data, size_t data_size, int32_t font_size, lv_font_kerning_t kerning, size_t cache_size)| Name | Type | Description |
|---|---|---|
data | const void * | the data pointer |
data_size | size_t | the data size |
font_size | int32_t | the font size in pixel |
kerning | lv_font_kerning_t | kerning value in pixel |
cache_size | size_t | the cache size in count |
public/font/lv_tiny_ttf.h:98function
lv_tiny_ttf_destroy
Destroy a font previously created with lv_tiny_ttf_create_xxxx()
void lv_tiny_ttf_destroy(lv_font_t *font)| Name | Type | Description |
|---|---|---|
font | lv_font_t * | the font object May be NULL. |
Structs
struct
lv_tiny_ttf_font_src_t
| Member | Type | Description |
|---|---|---|
path | const char * | Path to the font file |
data | const void * | Pointer to the font data |
data_size | size_t | Size of the font data |
cache_size | size_t | Size of the font cache |
Variables
public/font/lv_tiny_ttf.h:38variable
lv_tiny_ttf_font_class
const lv_font_class_t lv_tiny_ttf_font_classDependencies
Last updated on