# oled_font_library **Repository Path**: luyaocf/oled_font_library ## Basic Information - **Project Name**: oled_font_library - **Description**: 使用 Python 实现汉字字库的制作。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-08-04 - **Last Updated**: 2024-11-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 介绍 - OLED font library, 使用 Python 实现的 OLED 字库制作: - 支持 GBK、Unicode 字符集 - 支持自定义字符集范围 - 支持字体选择(宋体、楷体,其它字体可自由修改源码中字体的绝对路径来实现) - 支持点阵大小设置(建议 12、16、24) - 支持生成模式设置(目前只测试过 “纵向,先上下后左右”) - 支持字节序设置 - 支持阴阳码显示 - 支持生成实时百分比显示 - 支持点阵的模拟显示 - 为什么要写这样一个程序?在编写 OLED 驱动时,需要以 “纵向,先上下后左右,低字节在前” 的方式制作 Unicode 和 GBK 编码字库,没有找到合适的。 ## 使用说明 - 打包为 exe: ```bat pyinstaller --icon=imgs/1.ico -F -n oled_font_library --noconsole .\main.py ``` ## 结果展示 - 效果图:![测试](./imgs/字库.gif) - gif made by [screenToGif](https://www.screentogif.com/) ## 版本 - 1.0(当前版本): - “生成模式” 目前只测试过 “纵向,先上下后左右” 功能 - 点阵模拟功能目前同样只实现 “纵向,先上下后左右” 模式的 “大小端”、“阴阳码显示” 功能