1 /* 2 * hzfont.h by Dr. Susie W. chu, March 18,1991 3 * 4 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/big5.h,v 1.1 2004/06/18 23:19:08 william Exp $ 5 */ 6 #include <stdio.h> 7 8 #ifdef undef 9 typedef unsigned short ushort; 10 typedef unsigned char uchar; 11 #endif 12 /* The following *.n are .15 means 16x15 fonts, .24 means 24x24 fonts 13 .40 means 40x40 fonts, .48 means 48x48 fonts, .64 means 64x64 fonts 14 For the screen display we use 16x15 font as default. (also in ROM). 15 For the printout (laserjet,or ps) we use 24x24 font for m,l and k style. 16 For the printout (laserjet,or ps) we use 48x48 font for s style. 17 Big 5 code is a double byte encoding chinese scheme. 18 The low byte ranges are 40-7e ( 63 of them) and a1-fe (94 of them). 19 Font name range # of chars 20 --------- ----- ---------- 21 spcfont.n Special symbol 22 a140 - a3bf 408 23 stdfont.n (a)Frequently used 24 a440 - c67e 5401 25 <--- gap 26 (b)Infrequently used 27 c940 - f9d5 7652 28 (c)ETen words 29 f9d6 - f9fe 41 30 -------- 31 total 13,094 32 spcfsupp.n Suppliment 33 c6a1 - c8d3 365 34 ascfont.n AscII half width 35 00 - ff 256 36 */ 37 #define NSPC 408 38 #define NSTD1 5401 39 #define NSTD2 7652 40 #define NSTD3 41 41 #define NSUPP 365 42 #define NASCII 256 43 #define HISPCS 0xa1 44 #define HISPCE 0xa3 45 #define HISTD1S 0xa4 46 #define HISTD1E 0xc6 47 #define HISTD23S 0xc9 48 #define HISTD23E 0xf9 49 #define HISUPPS 0xc6 50 #define HISUPPE 0xc8 51 #define NLOWB1 63 52 #define NLOWB2 94 53 #define NLOWB 157 54 #define LO1S 0x40 55 #define LO1E 0x7e 56 #define LO2S 0xa1 57 #define LO2E 0xfe 58 #define LOSPCE 0xbf 59 #define LOSTD1E 0x7e 60 #define LOSTD23E 0xfe 61 #define LOSUPPS 0xa1 62 #define LOSUPPE 0xd3 63 /* high order byte */ 64 #define HB(code) ((code)>>8) 65 /* low order byte */ 66 #define LB(code) ((code)&0xff) 67