1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

font thinking

This commit is contained in:
Gabor Kiss-Vamosi 2019-05-19 10:51:20 +02:00
parent 077a645a92
commit b6d24040bf

View File

@ -102,6 +102,23 @@ typedef struct {
/* First glyph ID (array index of `glyph_dsc`) for this range */
uint16_t glyph_id_start;
/* Format 0 tiny
* glyph_id = glyph_id_start + (codepoint - range_start) */
/* Format 0 full
* glyph_id = glyph_id_start + glyph_id_list[codepoint - range_start] */
/* Sparse tiny
* glyph_id = glyph_id_start + search(unicode_list, codepoint - range_start) */
/* Sparse full
* glyph_id = glyph_id_start + glyph_id_list[search(unicode_list, codepoint - range_start)] */
uint16_t * unicode_list;
/* NULL: the range is mapped continuously from `glyph_id_start`
* Else map the Unicode characters from `glyph_id_start` (relative to `range_start`)*/
uint16_t * unicode_list;