当前位置:网站首页>lv_font_conv离线转换
lv_font_conv离线转换
2022-07-05 14:57:00 【Neo Wordsworth】
esp32使用lvgl,需要用到中文
需要nodejs,我的是win7,只能使用13.14.0版本,更高的不能安装
得到源码
CNPM Binaries Mirrorhttps://registry.npmmirror.com/binary.html?path=node/v13.14.0/
克隆下仓库
https://github.com/lvgl/lv_font_conv.git
在源码目录下,运行npm install,安装所需包
加入到系统全局
重启cmd,运行lv_font_conv -h测试一下(不能在同名目录下运行,随便切换一个目录)
在字体的目录,打开cmd
运行字体转换
(字体从这里下载 http:// lvgl.100ask.net/8.2/tools/fonts-zh-source.html#id2)
lv_font_conv --font SourceHanSansCN-Light-2.otf -r 0x20-0x7E -r 0x4E00-0x9FFF --size 16 --format lvgl --bpp 2 --no-compress -o ./lvgl.c
参数如下,更多参数可见github
--font:
ttf/woff/woff2/otf字体路径
-r, --range
单个字符或字符范围。可以使用多次
--size
输出字符大小-像素
--format
输出格式(dump,bin,lvgl)
--bpp
每个像素的位数(抗锯齿)
--no-compress
禁止压缩(压缩字体能减小大小但会导致渲染速度变慢)
-o, --output
输出路径(文件或目录)
转换完成
边栏推荐
- How to paste the contents copied by the computer into mobaxterm? How to copy and paste
- [detailed explanation of Huawei machine test] character statistics and rearrangement
- IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
- Cartoon: programmers don't repair computers!
- 你童年的快乐,都是被它承包了
- Coding devsecops helps financial enterprises run out of digital acceleration
- Crud de MySQL
- Brief introduction of machine learning framework
- 【华为机试真题详解】字符统计及重排
- Interpretation of Apache linkage parameters in computing middleware
猜你喜欢
Garbage collection mechanism of PHP (theoretical questions of PHP interview)
Under the crisis of enterprise development, is digital transformation the future savior of enterprises
计算中间件 Apache Linkis参数解读
sql server学习笔记
爱可可AI前沿推介(7.5)
Bugku alert
Reasons and solutions for redis cache penetration and cache avalanche
Ecotone technology has passed ISO27001 and iso21434 safety management system certification
12 MySQL interview questions that you must chew through to enter Alibaba
P1451 求细胞数量/1329:【例8.2】细胞
随机推荐
Bugku's Ping
Coding devsecops helps financial enterprises run out of digital acceleration
Crud of MySQL
想问下大家伙,有无是从腾讯云MYSQL同步到其他地方的呀?腾讯云MySQL存到COS上的binlog
I collect multiple Oracle tables at the same time. After collecting for a while, I will report that Oracle's OGA memory is exceeded. Have you encountered it?
Leetcode: Shortest Word Distance II
Bugku alert
Database learning - Database Security
Live broadcast preview | how to implement Devops with automatic tools (welfare at the end of the article)
Shanghai under layoffs
【华为机试真题详解】欢乐的周末
Bugku's eyes are not real
Detailed explanation of usememo, memo, useref and other relevant hooks
No one consults when doing research and does not communicate with students. UNC assistant professor has a two-year history of teaching struggle
当代人的水焦虑:好水究竟在哪里?
Ctfshow web entry command execution
【jvm】运算指令
Type declaration of all DOM elements in TS
Huiyuan, 30, is going to have a new owner
easyOCR 字符识别