Bitmap Data
Byte
Hex Value
1
0
0
0
0
1
0
0
0
0
10000100
0x84
1
0
1
1
0
00101101
0x2D
1
1
0
0
1
10011000
0x98
1
0
0
0
1
11000110
0xC6
1
0
0
0
1
00100000
0x20
1
0
0
0
1
Figure 18: Bitmap Encoding
As you can see the letter
h
will take up ?ve bytes with the last ?ve bits being zero padded
to form a full
byte. So if you continue the process you will get the character data as seen in
table 5.1.2.
Character Data
Character Data
Byte Size (For Reference)
h
0x84
0x2D
0x98
0xC6
0x20
0x05
i
0x43
0x24
0x84
0x03
j
0x2D
0x98
0x19
0x60
0x04
The second part of the font ?le is the character table. The cha
racter table is comprised of three bytes for
every glyph in the font ?le.
The ?rst two bytes represents the position, in bytes, of the g
lyph stored MSB LSB referenced from the
beginning of the ?le (including the header. The third byte is
the width of the glyph in pixels. So because
there will be 0x09 bytes in the character table (three bytes for each glyph) and four bytes in the header
section, the ?rst entry in the table will be 13, or 0x00 0x0D in
hexadecimal, and 0x05 for the width.
To calculate the second entry in the character table, representing the position and width of the second
glyph, take the offset of the ?rst entry and add the size of the
?rst bitmap in bytes. Since the ?rst glyph
occupies 0x05 bytes as seen in table 5.1.2 above, and the offset is 0x00 0x0D, the offset of the second entry
will be 0x00 0x12 and the width of the glyph is 0x03.
Calculate the third entry the same way as the second to get
table 10
below.
Table 10: Character Table
High Offset (MSB)
Low Offset (LSB)
Character Width
h
0x00
0x0D
0x05
i
0x00
0x12
0x03
j
0x00
0x15
0x04
Once completed, place the character table after the header and the character data aat the end, as seen in
table 11.
Matrix Orbital GLK12232-25-SM
21
相关PDF资料
GLK12232-25-USB-FGW-E LCD GRAPHIC DISPL 122X32
GLK240128-25-WB-V LCD GRAPHIC DISPL 240X128 BLU/WH
GLK24064-16-1U-TCI-VPT GRAPH DISP 240X64 TRICLR WD VLT
GLK24064-25-WB-V LCD GRAPHIC DISPL 240X64 BLU/WHT
GLT240128-FGW-VPT LCD TOUCH 128X240 WHT/GRY
GM2BB50BM0C LED WHITE 5000K 150MA 0.5W
GM5YJ01210A LED ORANGE CLEAR 6050 SMD
GU128X128D-3900B VACUUM FLUORESCENT DISPLAY
相关代理商/技术参数
GLK12232-25-USB-FGW 功能描述:LCD GRAPHIC DISPL 122X32 RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-USB-FGW-E 功能描述:LCD GRAPHIC DISPL 122X32 RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-USB-WB 功能描述:LCD GRAPHIC DISPL 122X32 RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-USB-WB-E 功能描述:LCD GRAPHIC DISPL 122X32 RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-WB 功能描述:LCD GRAPHIC DISPL 122X32 WHT/BLU RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-WB-E 功能描述:LCD GRAPHIC DISPL 122X32 WHT BLU RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-WBL 功能描述:LCD 图形显示模块和配件 Gray Background Blue Text RoHS:否 制造商:ELECTRONIC ASSEMBLY 产品: 分辨率:128 x 64 流体类型:FSTN Positive 接口: 背光: 背景色:White 工作温度范围:- 20 C to + 70 C 封装:Bulk
GLK12232-25-WBL-V 功能描述:LCD 图形显示模块和配件 Gray Background Blue Text RoHS:否 制造商:ELECTRONIC ASSEMBLY 产品: 分辨率:128 x 64 流体类型:FSTN Positive 接口: 背光: 背景色:White 工作温度范围:- 20 C to + 70 C 封装:Bulk