home *** CD-ROM | disk | FTP | other *** search
-
- BDFTOHFT.EXE hterm font compiler
-
-
- SYNTAX: bdftohft [options] <ascii.bdf> <kanji.bdf> <outfile.hft>
-
- OPTIONS:
- -v verbose
- -1 include only JIS level 1 kanji
-
- DESCRIPTION:
-
- bdftohft converts font file from X11 window system's bdf file format
- to hterm font file format.
-
-
- HOW TO MAKE HTERM FONT FILE:
-
- 1) prepare bdf file (X11 font file)
-
- You need ascii file and kanji file. For example, we assume to use
- a14.bdf as a ascii font file and k14.bdf as a kanji font file.
-
- 2) make a14x.bdf from a14.bdf and a14add.bdf
-
- insert a14add.bdf to proper position in a14.bdf then make a14x.bdf.
- There are two characters which are used by hterm's history editor.
- Since their code are 0x7f and 0x80, edit a14.bdf and insert them
- after 0x7e code.
-
- 3) create hft file
-
- use hterm font compiler bdftohft.exe
-
- C> bdftohft a14x.bdf k14.bdf a14k14.hft
-
- bdftohft takes some command line options. One is -1 option. -1 option
- directs to include only JIS level 1 kanji in hft file so that hterm
- consumes less memory.
- JIS is an acronym of Japanese Industry Standard. 'JIS level 1' means
- minimal set of usual kanji characters. In JIS level 1 set there are 3500
- characters including special symbols, hira-kana, kata-kana, alphabet and
- kanji.
-
- 4) copy hft file to a directory in PATH.
-
- C> copy a14k14.hft /tools/bin
-
- If your font file name is maru14.hft, type hterm -fmaru14.hft.
- hterm will search maru14.hft in current directory, your HOME directory
- and directories in PATH environment variable.
-
-
- FONT FILE FORMAT:
-
- As described in src/font.h, hft file has following structure.
-
- comment 48 bytes
- font descriptor for ascii font
- font descriptor for kanji font
- ascii font body
- ascii font index
- kanji font body
- kanji font index
-
- Here is font descriptor format. One font is consisted by on memory part
- and off memory part. While on memory part is loaded on memory parmanently,
- off memory part is loaded in cache on demand basis. 'onMemEndChar' defines
- border of two parts. By default configulation, 0xff is used for ascii and
- 0x2576 is used for kanji. 0x2567 is a code of the last character of KATA-KANA.
-
-
- unsigned short startChar
- code number of first character
-
- unsigned short endChar
- code number of end character
-
- unsigned short numFont
- number of fonts
-
- unsigned short onMemEndChar
- code nubmer of last on memory font
-
- unsigned short numOnMemFont
- number of on memory font
-
- unsigned short numIndex
- number of items in index
-
- unsigned short wwidth
- font column width in bytes
- eg. 1 for ascii 2 for kanji
-
- unsigned short dwidth
- font raw width in bytes e.g., 14
-
- long fontAddress
- font body address in hft file
-
- long indexAddress
- font index address in hft file
-
- char FAR *fontBuf;
- not used
-
- long HUGE *indexTab;
- not used
-
- BUGS:
- You shuld edit bdftohft.c in order to change onMemEndChar.
-
-