#include "../../../lv_conf.h"
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "lv_symbol_def.h"
Go to the source code of this file.
§ LV_FONT_WIDTH_FRACT_DIGIT
| #define LV_FONT_WIDTH_FRACT_DIGIT 4 |
§ LV_FONT_KERN_POSITIVE
| #define LV_FONT_KERN_POSITIVE 0 |
§ LV_FONT_KERN_NEGATIVE
| #define LV_FONT_KERN_NEGATIVE 1 |
§ LV_FONT_DECLARE
| #define LV_FONT_DECLARE |
( |
|
font_name | ) |
extern lv_font_t font_name; |
§ lv_font_t
§ lv_font_get_glyph_bitmap()
| const uint8_t* lv_font_get_glyph_bitmap |
( |
const lv_font_t * |
font_p, |
|
|
uint32_t |
letter |
|
) |
| |
Return with the bitmap of a font.
- Parameters
-
| font_p | pointer to a font |
| letter | an UNICODE character code |
- Returns
- pointer to the bitmap of the letter
§ lv_font_get_glyph_dsc()
Get the descriptor of a glyph
- Parameters
-
| font_p | pointer to font |
| dsc_out | store the result descriptor here |
| letter | an UNICODE letter code |
- Returns
- true: descriptor is successfully loaded into
dsc_out. false: the letter was not found, no data is loaded to dsc_out
§ lv_font_get_glyph_width()
| uint16_t lv_font_get_glyph_width |
( |
const lv_font_t * |
font, |
|
|
uint32_t |
letter, |
|
|
uint32_t |
letter_next |
|
) |
| |
Get the width of a glyph with kerning
- Parameters
-
| font | pointer to a font |
| letter | an UNICODE letter |
| letter_next | the next letter after letter. Used for kerning |
- Returns
- the width of the glyph