PS C:\Users\25351\Desktop\Easy-u8g2-font-generate-tools-master> python .\main.py
=============U8g2字库生成器 V1.0=============
Email: [email protected]
[ASK] 请输入需要生成字库的文本(自动去重):012345 6789.AD%+-~:|距倾查护翼短测量校准设置离内温存储角值系统信息亮度日期时间电
[ASK] 生成字库命名 >SarasaMonoSC
[ASK] 输入ttf格式字体路径 >SarasaMonoSC-Regular.ttf
[ASK] 输入生成字库字体DPI >72
[ASK] 输入生成字库字体大小(px) >28
[ASK] 输入生成字库字体间距大小(%) >0
[ASK] 是否过滤ASCII? (Y/n) >n
[ASK] MAP字符映射文件是否包含ASCII? (Y/n) >n
原子字库: {'短', '校', '6', '~', '统', '亮', '日', '-', '时', '存', '5', '+', '值', '8', '2', '查', '内', '倾', '翼', '息', '4', ' ', 'D', ':', '距', '温', '护', '1', '量', '度', '置', '%', '信', '角', '电', '.', '离', '|', '测', '准', '系', '期', '9', '设', '0', '3', '7', '储', '间', 'A'}
转unicode原子字库: ['$20', '$25', '$2B', '$2D', '$2E', '$30', '$31', '$32', '$33', '$34', '$35', '$36', '$37', '$38', '$39', '$3A', '$41', '$44', '$4EAE', '$4FE1', '$503C', '$503E', '$50A8', '$5185', '$51C6', '$5B58', '$5EA6', '$606F', '$62A4', '$65E5', '$65F6', '$671F', '$67E5', '$6821', '$6D4B', '$6E29', '$7535', '$77ED', '$79BB', '$7C', '$7CFB', '$7E', '$7EDF', '$7F6E', '$7FFC', '$89D2', '$8BBE', '$8DDD', '$91CF', '$95F4']
字符map映射表: $20, $25, $2B, $2D, $2E, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $3A, $41, $44, $4EAE, $4FE1, $503C, $503E, $50A8, $5185, $51C6, $5B58, $5EA6, $606F, $62A4, $65E5, $65F6, $671F, $67E5, $6821, $6D4B, $6E29, $7535, $77ED, $79BB, $7C, $7CFB, $7E, $7EDF, $7F6E, $7FFC, $89D2, $8BBE, $8DDD, $91CF, $95F4
> otf2bdf.exe -v -r 72 -p 28.0 -o bdf/SarasaMonoSC-Regular_28.bdf SarasaMonoSC-Regular.ttf
> bdfconv.exe -v -b 0 -f 1 bdf/SarasaMonoSC-Regular_28.bdf -M map/SarasaMonoSC.map -n SarasaMonoSC_28 -o code/SarasaMonoSC_28.c -p 0 -d bdf/SarasaMonoSC-Regular_28.bdf
Parse File bdf/SarasaMonoSC-Regular_28.bdf: 45714 glyph(s) found
Map: map_cmd_list='$20, $25, $2B, $2D, $2E, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $3A, $41, $44, $4EAE, $4FE1, $503C, $503E, $50A8, $5185, $51C6, $5B58, $5EA6, $606F, $62A4, $65E5, $65F6, $671F, $67E5, $6821, $6D4B, $6E29, $7535, $77ED, $79BB, $7C, $7CFB, $7E, $7EDF, $7F6E, $7FFC, $89D2, $8BBE, $8DDD, $91CF, $95F4'
Map: exclude=0 from=32/$20 to=32/$20 map=32/$20 (further single glyph logs disabled)
Reduce: Start
Reduce: End
CalculateMaxBBX: x=0, y=-7, w=27, h=32
CalculateMaxBBX: Encodings x=32, y=124, w=32, h=38388
bf_CalculateMinMaxDWidth: dx_min=84, dx_max=84
bf_CalculateMinMaxDWidth: x_min=0, x_max=7
bf_CalculateMinMaxDWidth: Monospaced font.
bf_CalculateMaxBitFieldSize: bbx.x=4, bbx.y=4, bbx.w=5, bbx.h=5, dwidth=8
RLE Compress: best zero bits 4, one bits 4, total bit size 22792
RLE Compress: Font code generation, selected glyphs=50, total glyphs=45714
RLE Compress: ASCII gylphs=20, Unicode glyphs=30
RLE Compress: Glyphs per unicode lookup table entry=100
RLE Compress: Unicode lookup table len=0, written entries=0
RLE Compress: Unicode lookup table first entry: delta=4, encoding=65535
RLE Compress: Unicode lookup table last entry: delta=4353, encoding=0
RLE Compress: 'A' pos = 403, 'a' pos = 0
RLE Compress: Font size 2880
Draw TGA, line height 36
Draw TGA, xmax 1478
bf_WriteU8G2CByFilename: Write file 'code/SarasaMonoSC_28.c'
[操作完成]
[ASK] 请输入需要生成字库的文本(自动去重):距倾查护翼短测量校准设置离内温存储角值系统信息亮度日期时间电
[ASK] 生成字库命名 >SarasaMonoSC3
[ASK] 输入ttf格式字体路径 >SarasaMonoSC-Regular.ttf
[ASK] 输入生成字库字体DPI >96
[ASK] 输入生成字库字体大小(px) >28
[ASK] 输入生成字库字体间距大小(%) >0
[ASK] 是否过滤ASCII? (Y/n) >Y
[ASK] MAP字符映射文件是否包含ASCII? (Y/n) >Y
原子字库: {'置', '查', '信', '内', '值', '间', '存', '准', '离', '量', '护', '距', '温', '倾', '期', '短', '统', '翼', '度', '电', '亮', '息', '系', '日', '测', '角', '储', '校', '时', '设'}
转unicode原子字库: ['$4EAE', '$4FE1', '$503C', '$503E', '$50A8', '$5185', '$51C6', '$5B58', '$5EA6', '$606F', '$62A4', '$65E5', '$65F6', '$671F', '$67E5', '$6821', '$6D4B', '$6E29', '$7535', '$77ED', '$79BB', '$7CFB', '$7EDF', '$7F6E', '$7FFC', '$89D2', '$8BBE', '$8DDD', '$91CF', '$95F4']
字符map映射表: 32-128, $4EAE, $4FE1, $503C, $503E, $50A8, $5185, $51C6, $5B58, $5EA6, $606F, $62A4, $65E5, $65F6, $671F, $67E5, $6821, $6D4B, $6E29, $7535, $77ED, $79BB, $7CFB, $7EDF, $7F6E, $7FFC, $89D2, $8BBE, $8DDD, $91CF, $95F4
> otf2bdf.exe -v -r 96 -p 21.0 -o bdf/SarasaMonoSC-Regular_28.bdf SarasaMonoSC-Regular.ttf
> bdfconv.exe -v -b 0 -f 1 bdf/SarasaMonoSC-Regular_28.bdf -M map/SarasaMonoSC3.map -n SarasaMonoSC3_28 -o code/SarasaMonoSC3_28.c -p 0 -d bdf/SarasaMonoSC-Regular_28.bdf
Parse File bdf/SarasaMonoSC-Regular_28.bdf: 45714 glyph(s) found
Map: map_cmd_list='32-128, $4EAE, $4FE1, $503C, $503E, $50A8, $5185, $51C6, $5B58, $5EA6, $606F, $62A4, $65E5, $65F6, $671F, $67E5, $6821, $6D4B, $6E29, $7535, $77ED, $79BB, $7CFB, $7EDF, $7F6E, $7FFC, $89D2, $8BBE, $8DDD, $91CF, $95F4'
Map: exclude=0 from=32/$20 to=128/$80 map=32/$20
Map: exclude=0 from=20142/$4eae to=20142/$4eae map=20142/$4eae (further single glyph logs disabled)
Reduce: Start
Reduce: End
CalculateMaxBBX: x=0, y=-7, w=27, h=32
CalculateMaxBBX: Encodings x=32, y=124, w=20142, h=38388
bf_CalculateMinMaxDWidth: dx_min=84, dx_max=84
bf_CalculateMinMaxDWidth: x_min=0, x_max=7
bf_CalculateMinMaxDWidth: Monospaced font.
bf_CalculateMaxBitFieldSize: bbx.x=4, bbx.y=5, bbx.w=5, bbx.h=5, dwidth=8
RLE Compress: best zero bits 4, one bits 3, total bit size 38160
RLE Compress: Font code generation, selected glyphs=125, total glyphs=45714
RLE Compress: ASCII gylphs=95, Unicode glyphs=30
RLE Compress: Glyphs per unicode lookup table entry=100
RLE Compress: Unicode lookup table len=0, written entries=0
RLE Compress: Unicode lookup table first entry: delta=4, encoding=65535
RLE Compress: Unicode lookup table last entry: delta=4608, encoding=0
RLE Compress: 'A' pos = 811, 'a' pos = 1694
RLE Compress: Font size 4801
Draw TGA, line height 36
Draw TGA, xmax 1478
bf_WriteU8G2CByFilename: Write file 'code/SarasaMonoSC3_28.c'
[操作完成]
可以认定是字符串和u8g2不兼容,但具体是什么导致的,只有三个可能性,1. 文字字体与您U8g2工具不兼容,2. 您U8g2工具和最新版本代码不匹配,3. 文字字体和最新版本代码不匹配。