5.1.1 Font File Format
A font ?le consists of three parts, a header, a character tabl
e and bitmap data.
1. Header (4 bytes)
(a) Nominal Width (1 byte)
(b) Height (1 byte)
(c) ASCII Start Value (1 byte)
(d) ASCII End Value (1 byte)
2. Character Table (3 bytes for every character between the ASCII Start and End values inclusive)
(a) High Offset MSB (1 byte)
(b) Low Offset LSB(1 byte)
(c) Character Width (1 byte)
3. Bitmap Data
5.1.2 Creating a Font
The following is an example of how to create a font ?le for the l
etters
h,
i
and
j.
First you must create the bitmaps containing the character data in bitmap form.
Figure 18
below illus-
trates the bit pattern for the
h,
i
and
j
bitmap data.
Figure 18: Bitmaps for h, i, and j
Second you may begin to create the font ?le starting with the h
eader. The header will contain the nominal
width, the height and the ASCII start and end values inclusive that you wish to create characters for.
Table 9: Font File Header
Height
ASCII Start Val
Nominal Width
ASCII End Val
0x05
0x07
0x49
0x4B
Next we will have to ?nd out how many bytes each character will
use up, in order to create the character
table. The bitmaps are encoded horizontally and may have variable widths,
h
has a width of ?ve,
i
a width
of three and
j
a width of four, see the ?gure below for an example of encoding
the ?rst letter
h:
Matrix Orbital GLK12232-25
20
相关PDF资料
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
GU144X16D-7053B VACUUM FLUORESCENT DISPLAY
相关代理商/技术参数
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
GLK12232-25-WB-USB 功能描述:LCD 图形显示模块和配件 122x32 Wht Txt Blu B/G 25 key RoHS:否 制造商:ELECTRONIC ASSEMBLY 产品: 分辨率:128 x 64 流体类型:FSTN Positive 接口: 背光: 背景色:White 工作温度范围:- 20 C to + 70 C 封装:Bulk
GLK12232-25-WB-USB-E 功能描述:LCD 图形显示模块和配件 122x32 Wht Txt Blu B/G Ext Temp RoHS:否 制造商:ELECTRONIC ASSEMBLY 产品: 分辨率:128 x 64 流体类型:FSTN Positive 接口: 背光: 背景色:White 工作温度范围:- 20 C to + 70 C 封装:Bulk