home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / COMM / MISC / SRC26_2.ZIP / SRC / FONT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-30  |  1.2 KB  |  40 lines

  1. /*
  2.  * font.h: hterm font file definition
  3.  *
  4.  * Author: HIRANO Satoshi
  5.  * (C) 1990  Halca Computer Science Laboratory  TM
  6.  *
  7.  * Edition History:
  8.  * 1.1 90/01/30 Halca.Hirano creation
  9.  *
  10.  * $Header: font.hv  1.2  90/06/30 03:51:26  hirano  Exp $
  11.  */
  12.  
  13. #define JIS_KANA_LAST 0x2576        /* parmanent cache last char    */
  14. #define JIS_SPACE 0x2121            /* default char                    */
  15.  
  16. typedef struct {
  17.     unsigned short    startChar;        /* index first char code */
  18.     unsigned short    endChar;        /* index end char code    */
  19.     unsigned short    numFont;        /* number of fonts        */
  20.     unsigned short    onMemEndChar;    /* last char of on memory font    */
  21.     unsigned short    numOnMemFont;    /* number of on memory fonts    */
  22.     unsigned short    numIndex;        /* index table entry    */
  23.     unsigned short    wwidth;            /* W width in bytes        */
  24.     unsigned short    dwidth;            /* D width in bytes        */
  25.     long            fontAddress;    /* font body file address    */
  26.     long            indexAddress;    /* index file address        */
  27.     char FAR *fontBuf;
  28.     long HUGE *indexTab;
  29. } FontDesc;
  30.  
  31. typedef struct {
  32.     char        comment[16*3];    /* copyright            */
  33.     FontDesc    ascii;
  34.     FontDesc    kanji;
  35.     /* ascii font body                     */
  36.     /* ascii font index table            */
  37.     /* kanji font body                     */
  38.     /* kanji font index table             */
  39. } FontFile;
  40.