Skip to content

Commit 36a2029

Browse files
committed
更新说明文档
1 parent ce1429e commit 36a2029

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ $ python fontlib.py
7070

7171
```docs
7272
HZK Info: .//client/combined.bin
73-
file size : 303520
73+
file size : 261972
7474
font height : 16
7575
data size : 32
76-
scan mode : Horizontal
76+
scan mode : Vertical
7777
byte order : LSB
78-
characters : 8932
78+
characters : 7710
7979
8080
!: b'\x00\x00\x00\x00\x00\x00\x08\x00\x0c\x00\x08\x00\x08\x00\x08\x00\x08\x00\x08\x00\x08\x00\x08\x00\x00\x00\x08\x00\x08\x00\x00\x00'
8181
@@ -229,15 +229,21 @@ $ ab abconfig-mpy
229229

230230
方法参见 [使用图标字体生成字库](./ICONFONT.md)
231231

232+
### 选取其它语种字符的方法
233+
234+
`GB2312`收录了包括拉丁字母、希腊字母、日文平假名及片假名字母、俄语西里尔字母在内的 682 个全角字符
235+
236+
可以用键盘输入它们,但是并不一定简单,好在我们还可以从 [GB2312简体中文编码表](http://tools.jb51.net/table/gb2312) 页面中直接查看复制它们
237+
232238
### 关于速度
233239

234240
> 以当前字库文件举例:
235241
> * 文件名:`combined.bin`
236-
> * 文件大小:`303,520`字节
242+
> * 文件大小:`261,972`字节
237243
> * `GB2312`索引表大小:`17,672`字节
238244
> * 点阵大小:`16x16`像素
239245
> * 字符数据大小:`32`字节
240-
> * 字符总数:`8932`个(包含`ASCII``GB2312`
246+
> * 字符总数:`7710`个(包含`ASCII``GB2312`
241247
242248

243249
* 实例化`FontLib`时打开字库文件,读取文件头信息,大约 12 ms

0 commit comments

Comments
 (0)