Skip to content

zhcong/micropython-chinese-font

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1、字库文件生成

全部生成代码位于make_db,具体生成步骤见README文件 已生成文件位于build目录下,该文件可以存储在任意存储上(片上存储、外置SD卡等),字形数据不占用RAM空间,仅索引占用内存

2、字库使用

示例见main.py,主要功能类为ChineseFont.py,字库文件font_32.data,是生成好了的32x32大小的字符bitMap
获取bitmap代码

font_map = font.get_bit_map('我')

使用时将ChineseFont.pyfont_32.data拷贝至板子上即可

示意图

About

micropython中文字库

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages