Просмотр исходного кода

update: gtfont,更新pc模拟器上gtfont的ttf解析方式,并打开对于gtfont的支持

zengeshuai 2 месяцев назад
Родитель
Сommit
0356c769ea
3 измененных файлов с 1283 добавлено и 15 удалено
  1. 2 2
      bsp/pc/include/luat_conf_bsp.h
  2. 1280 12
      bsp/pc/port/luat_gtfont_pc.c
  3. 1 1
      bsp/pc/xmake.lua

+ 2 - 2
bsp/pc/include/luat_conf_bsp.h

@@ -137,9 +137,9 @@
 #define LUAT_USE_LCD
 #define LUAT_USE_TJPGD
 // GT 字库:PC 模拟器仿真启用
-// #define LUAT_USE_GTFONT 1
+#define LUAT_USE_GTFONT 1
 // 若需要直接绘制 UTF8 字符串(lcd/u8g2 的 UTF8 接口),启用
-// #define LUAT_USE_GTFONT_UTF8 1
+#define LUAT_USE_GTFONT_UTF8 1
 // hzfont 字体库支持
 #define LUAT_USE_HZFONT 1
 #define LUAT_CONF_USE_HZFONT_BUILTIN_TTF 1

Разница между файлами не показана из-за своего большого размера
+ 1280 - 12
bsp/pc/port/luat_gtfont_pc.c


+ 1 - 1
bsp/pc/xmake.lua

@@ -335,7 +335,7 @@ target("luatos-lua")
         -- gtfont PC simulator core
         add_includedirs(luatos.."components/gtfont")
         add_includedirs(luatos.."components/eink")
-        -- add_files(luatos.."components/gtfont/*.c")
+        add_files(luatos.."components/gtfont/*.c")
         
         -- hzfont component
         add_includedirs(luatos.."components/hzfont/inc")

Некоторые файлы не были показаны из-за большого количества измененных файлов