With this free online font converter tool you can create C array from any TTF or WOFF. You can select ranges of Unicode characters and speficy the bpp (bit-per-pixel).
The font converter is designed to be compatible with LVGL.
一、环境准备
版本:LVGL version: 8.3.6
官方工具链接:https://lvgl.io/tools/fontconverter
中文字体库版本:C:\Windows\Fonts (可以选择自己需要的字体库TTF或者WOFF格式都可以)
二、工具说明
使用官方提供的在线字体转换工具(https://lvgl.io/tools/fontconverter),需要注意的是默认要你设置生成文件的字符范围,如下图配置即可:
Enable Font compression (reduces size but results in slower rendering)
启用字体压缩(减小尺寸但导致渲染速度变慢)
Horizontal subpixel rendering (may improve font quality but r