m0_60251057: 按照步骤来我也是显示口口口,转换后的图标点c文件我放工程里,为了方便管理我还新建了对应的点h文件,在需要的工程引用了这个头文件#include "symbol_test.h",但是也是显示口。 [code=csharp] #ifndef __SYMBOL_TEST__ #define __SYMBOL_TEST__ #ifdef __cplusplus extern "C" { #endif #include "lvgl/" //声明字体 LV_FONT_DECLARE(symbol_test); #define LV_CUSTOM_SYMBOL_ADVANCED "\xEE\x9D\xAA" //Unicode:0xe76a #define LV_CUSTOM_SYMBOL_INPUT "\xEE\xB4\x9E" //Unicode:0xed1e #define LV_CUSTOM_SYMBOL_AUDIO "\xEE\x99\xB1" //Unicode:0xe671 #ifdef __cplusplus } #endif #endif #pragma once [/code] 之后我将中文字库跟图标一起转换为一个字体点c文件,并且也在lv_conf.h声明了 #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(font_sysmbol) #define LV_FONT_DEFAULT &font_sysmbol 同样在lv_symbol_def.h也定义了 #if !defined LV_CUSTOM_SYMBOL_ADVANCED #define LV_CUSTOM_SYMBOL_ADVANCED "\xEE\x9D\xAA" //Unicode:0xe76a #endif #if !defined LV_CUSTOM_SYMBOL_INPUT #define LV_CUSTOM_SYMBOL_INPUT "\xEE\xB4\x9E" //Unicode:0xed1e #endif
VirtualBox 新建虚拟机
lvgl8.2 自定义符号