README file for WinFont.EXE ============================= Hi, everybody, Here is how I made my first bitmap font file for Microsoft Windows. I'm not sure this program works for you right away. But since the source codes are there, so I believe it's not hard for you to figure out everything. Besides, you can always send me a mail to . Hope you find it of help. WINFONT.EXE is a self-extracting file, you run it, you get the source code, makefile, etc., compressed in it. You need to compile the CHFON.C program first. Rest of the job is taken care of by the makefile. Oh, CHFON.C was written with Borland C and it works only with the CCDOS format GB font files (which means the rows from 10 to 15 must be missing from the original bitmap file). Microsoft Resource Compiler version 2 was used. You may need to change the makefile if you need to use the RC version 3. In CHFON.C, bitmaps of characters are dug out of the GB font files, whcih can be found at ifcss.org using anonymous FTP, rotated if necessary (from printer-style orientation to screen-style orientation), and then combined with the respective .FHR (font header) files into .FNT (Microsoft Windows font set) files. Then dummy code WINFNT.ASM is compiled and linked. Then RC is run to link the WINFNT.EXE and all the .FNT files and the .RC file generated by CHFON.EXE into a single CH*.FON file. If the given .FNT file does not work for you, here is how you can creat one of your own: (1) create a fixed-width file, say X16.FNT, in the size you want, with Microsoft SDK Font Editor or the Borland Workshop; (2) make the first character in your X16.FNT file all black, so you can find out the header portion of the .FNT file easily; (3) use the DOS DEBUG.EXE utility to load the X16.FNT file, find the end of the header portion, save it into a file, say CH16.FHR. And I believe it's possible to build a set of TTF font for Windows. I might do something like that when I have the time. If anyone has bitmaps of Chinese characters at resolution higher than 64 (better of 128x128 or 256x256), could I have one or two of the bitmaps? Have fun computing! Wei Wang 1994.2.25 at Central Michigan University, Mt. Pleasant