当前位置:网站首页>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
输出路径(文件或目录)
转换完成
边栏推荐
- CODING DevSecOps 助力金融企业跑出数字加速度
- JS bright blind your eyes date selector
- What are CSRF, XSS, SQL injection, DDoS attack and timing attack respectively and how to prevent them (PHP interview theory question)
- Stop B makes short videos, learns Tiktok to die, learns YouTube to live?
- 【华为机试真题详解】欢乐的周末
- 漫画:优秀的程序员具备哪些属性?
- Bugku's Ah Da
- Mysql---- function
- 计算中间件 Apache Linkis参数解读
- CPU design related notes
猜你喜欢
Redis' transaction mechanism
Mysql---- function
超越PaLM!北大硕士提出DiVeRSe,全面刷新NLP推理排行榜
MongDB学习笔记
[JVM] operation instruction
P1451 求细胞数量/1329:【例8.2】细胞
Huiyuan, 30, is going to have a new owner
CODING DevSecOps 助力金融企业跑出数字加速度
Dark horse programmer - software testing -10 stage 2-linux and database -44-57 why learn database, description of database classification relational database, description of Navicat operation data, de
你童年的快乐,都是被它承包了
随机推荐
Two Bi development, more than 3000 reports? How to do it?
Live broadcast preview | how to implement Devops with automatic tools (welfare at the end of the article)
IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
Stop B makes short videos, learns Tiktok to die, learns YouTube to live?
Aike AI frontier promotion (7.5)
Want to ask the big guy, is there any synchronization from Tencent cloud Mysql to other places? Binlog saved by Tencent cloud MySQL on cos
MySQL----函数
Interview shock 62: what are the precautions for group by?
12 MySQL interview questions that you must chew through to enter Alibaba
Au - delà du PARM! La maîtrise de l'Université de Pékin propose diverse pour actualiser complètement le classement du raisonnement du NLP
Database learning - Database Security
Fr exercise topic --- comprehensive question
Using tensorboard to visualize the training process in pytoch
CPU design practice - Chapter 4 practice task 3 use pre delivery technology to solve conflicts caused by related issues
maxcompute有没有能查询 表当前存储容量的大小(kb) 的sql?
The difference between abstract classes and interfaces in PHP (PHP interview theory question)
【数组和进阶指针经典笔试题12道】这些题,满足你对数组和指针的所有幻想,come on !
计算中间件 Apache Linkis参数解读
危机重重下的企业发展,数字化转型到底是不是企业未来救星
当代人的水焦虑:好水究竟在哪里?