当前位置:网站首页>lv_font_conv离线转换
lv_font_conv离线转换
2022-07-05 14:57:00 【Neo Wordsworth】
esp32使用lvgl,需要用到中文
需要nodejs,我的是win7,只能使用13.14.0版本,更高的不能安装
得到源码
CNPM Binaries Mirror
https://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
输出路径(文件或目录)转换完成

边栏推荐
- 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
- P6183 [USACO10MAR] The Rock Game S
- Bugku telnet
- Super wow fast row, you are worth learning!
- How to solve the problem of garbled code when installing dependency through NPM or yarn
- Live broadcast preview | how to implement Devops with automatic tools (welfare at the end of the article)
- [detailed explanation of Huawei machine test] happy weekend
- easyOCR 字符识别
- Long list optimized virtual scrolling
- Easyocr character recognition
猜你喜欢

Drive brushless DC motor based on Ti drv10970

亿咖通科技通过ISO27001与ISO21434安全管理体系认证

How can I quickly check whether there is an error after FreeSurfer runs Recon all—— Core command tail redirection

社区团购撤城“后遗症”

Select sort and bubble sort

Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel

sql server学习笔记

IPv6与IPv4的区别 网信办等三部推进IPv6规模部署

Super wow fast row, you are worth learning!

MySQL之CRUD
随机推荐
Bugku's steganography
数据库学习——数据库安全性
NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
go学习 ------jwt的相关知识
R 熵权法计算权重及综合得分
美团优选管理层变动:老将刘薇调岗,前阿里高管加盟
Mysql---- function
Common MySQL interview questions
ICML 2022 | 探索语言模型的最佳架构和训练方法
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
Talking about how dataset and dataloader call when loading data__ getitem__ () function
GPS原始坐标转百度地图坐标(纯C代码)
Stop B makes short videos, learns Tiktok to die, learns YouTube to live?
sql server char nchar varchar和nvarchar的区别
Install PHP extension spoole
Brief introduction of machine learning framework
Your childhood happiness was contracted by it
qt creater断点调试程序详解
Common interview questions about swoole
GPS original coordinates to Baidu map coordinates (pure C code)