![]() |
GrLCM库的GetFont工具 |
| 首页 : 产品 | 应用 | 技术支持 | 2002/07/16 |
C:\GrLCM\font>getfont DM&P GetFont Utility for GrLCM Library. (Jul 16 2002 10:46:16) GETFONT:Read double byte coded text file and generate indexed font file Usage: GETFONT encode_type input_text_file output_font_file bdf_font_file encode_type : sjis/gbk/big5/ksc input_text_file : double byte coded text file output_font_file : output index font file bdf_font_file : BDF font file C:\GrLCM\font> |
为了使用方便,现在展示怎样用批处理文件获取字体。big5.c, gb.c 和sjis.c 在 \GRLCM\LIB 目录下,它们是MT_LANG工程的语言消息文件,可以演示多语言功能。为了获取Trad. Chinese字体,运行big5.c文件,从而得到一个big5.fnt文件:
C:\GrLCM\FONT>big5 ..\lib\big5.c DM&P GetFont Utility for GrLCM Library. (Jul 16 2002 10:46:16) double byte char in file=4 used char number=4 C:\GrLCM\FONT> |
获取Simp. Chinese字体:
C:\GrLCM\FONT>gb ..\lib\gb.c DM&P GetFont Utility for GrLCM Library. (Jul 16 2002 10:46:16) double byte char in file=4 used char number=4 C:\GrLCM\FONT> |
获取日本字体
C:\GrLCM\FONT>sjis ..\lib\sjis.c DM&P GetFont Utility for GrLCM Library. (Jul 16 2002 10:46:16) double byte char in file=3 used char number=3 C:\GrLCM\FONT> |
现在,可以得到三个.FNT文件:
C:\GrLCM\FONT>dir *.fnt
Volume in drive C is DMP
Volume Serial Number is 3560-14E1
Directory of C:\GrLCM\FONT
2002/07/16 AM 11:31 138 BIG5.FNT
2002/07/16 AM 11:31 138 GB.FNT
2002/07/16 AM 11:31 104 SJIS.FNT
3 File(s) 380 bytes
0 Dir(s) 3,510,304,768 bytes free
C:\GrLCM\FONT> |
拷贝“*.FNT”文件到MT_LANG.EXE文件所在的目录,当需要显示中国字体或者日本字体时, MT_LANG.EXE文件将会自动装载。
注意:当显示非英语字符时,务必设置字体大小为8×16。
| Jan Yin Chan Electronics Co., LTD.保留所有权利. | Email us: tech@dmp.com.cn |