|
7 | 7 | * INCLUDES
|
8 | 8 | *********************/
|
9 | 9 |
|
10 |
| -#include "../lv_font.h" |
11 |
| -#include "../lv_log.h" |
12 |
| -#include "../lv_utils.h" |
| 10 | +#include "lv_font.h" |
13 | 11 | #include "lv_font_fmt_txt.h"
|
| 12 | +#include "../lv_misc/lv_log.h" |
| 13 | +#include "../lv_misc/lv_utils.h" |
14 | 14 |
|
15 | 15 | /*********************
|
16 | 16 | * DEFINES
|
|
25 | 25 | **********************/
|
26 | 26 | static uint32_t get_glyph_dsc_id(const lv_font_t * font, uint32_t letter);
|
27 | 27 | static int8_t get_kern_value(const lv_font_t * font, uint32_t gid_left, uint32_t gid_right);
|
28 |
| -static int32_t lv_font_codeCompare(const void * pRef, const void * pElement); |
| 28 | +//static int32_t lv_font_codeCompare(const void * pRef, const void * pElement); |
29 | 29 |
|
30 | 30 | /**********************
|
31 | 31 | * STATIC VARIABLES
|
@@ -78,11 +78,9 @@ bool lv_font_get_glyph_dsc_fmt_txt(const lv_font_t * font, lv_font_glyph_dsc_t *
|
78 | 78 | if(!gid) return false;
|
79 | 79 |
|
80 | 80 | int8_t kvalue = 0;
|
81 |
| - const lv_font_fmt_txt_glyph_dsc_t * gdsc_next = NULL; |
82 | 81 | if(fdsc->kern_dsc) {
|
83 | 82 | uint32_t gid_next = get_glyph_dsc_id(font, unicode_letter_next);
|
84 | 83 | if(gid_next) {
|
85 |
| - gdsc_next = &fdsc->glyph_dsc[gid_next]; |
86 | 84 | kvalue = get_kern_value(font, gid, gid_next);
|
87 | 85 | }
|
88 | 86 | }
|
@@ -213,7 +211,7 @@ static int8_t get_kern_value(const lv_font_t * font, uint32_t gid_left, uint32_t
|
213 | 211 | * @retval > 0 Reference is less than element.
|
214 | 212 | *
|
215 | 213 | */
|
216 |
| -static int32_t lv_font_codeCompare(const void * pRef, const void * pElement) |
217 |
| -{ |
218 |
| - return (*(uint16_t *)pRef) - (*(uint16_t *)pElement); |
219 |
| -} |
| 214 | +//static int32_t lv_font_codeCompare(const void * pRef, const void * pElement) |
| 215 | +//{ |
| 216 | +// return (*(uint16_t *)pRef) - (*(uint16_t *)pElement); |
| 217 | +//} |
0 commit comments