kipnis@janus.Berkeley.EDU (Gary Kipnis) (10/13/89)
I am trying to come up with a FIXED_SIZE font under ms-windows on an EGA system s.t. that 80 characters will take up less than the complete width of the screen. I tried using CreateFont function, but it doesn't seem to create FIXED_SIZE fonts that are less than 10 in height ==> takes up the whole screen. How easy would it be to create my own font using Font Editor, and what's the difference between *.fnt and *.fon files (*.fnt are created with the Font Editor) and how do I use fonts from the above formats, I created *.fnt file, but I could not figure out how to load it, nor could I load some sample fonts from *.fon format Thanks for any pointers, gary
bturner@hpcvlx.cv.hp.com (Bill Turner) (10/13/89)
I haven't tried to create my own fonts, but FontEdit looks painful... The .FNT files contain the font information. If you add this as a resource to your program (in the .RC file include a line like "myfont FONT myfont.fnt") you should be able to use the font (AddFontResource). The .FON file is a resource-only program file. It has no code, and the .RC file specifies the resources that it contains. It is built the same way you'd build a program (with link4 and rc), but then it is renamed to .FON so noone will try to execute it. The Programmer's Guide (I believe) describes how these are created. Once created, they can be added to the system via Control Panel. --Bill Turner (bturner@hp-pcd.hp.com) HP Corvallis Information Systems
hadgraft@civeng.monash.edu.au (Roger Hadgraft) (10/16/89)
In article <31875@ucbvax.BERKELEY.EDU>, kipnis@janus.Berkeley.EDU (Gary Kipnis) writes: > I am trying to come up with a FIXED_SIZE font under ms-windows on an > EGA system s.t. that 80 characters will take up less than the complete > width of the screen. I tried using CreateFont function, but it doesn't > seem to create FIXED_SIZE fonts that are less than 10 in height ==> takes > up the whole screen. How easy would it be to create my own font using > Font Editor, and what's the difference between *.fnt and *.fon files > (*.fnt are created with the Font Editor) and how do I use fonts from > the above formats, I created *.fnt file, but I could not figure out > how to load it, nor could I load some sample fonts from *.fon format > After you create a .FNT font file, you must link it with a simple header file to create a .FON file which is really a .EXE file in disguise. The process is quite simple, and is described in the Software developers' Kit. I've created a couple of fonts, including a Symbol font (to match that in Postscript printers). You shouldn't have too much trouble creating a 9 pt font which wouldn't occupy the full width of the screen. Isn't there an 8 pt Courier version that you could use? regards, Roger Hadgraft | hadgraft@civeng.monash.edu.au Lecturer in Civil Engineering | phone: +61 3 565 4983 Monash University | fax: +61 3 565 3409 Clayton, Vic. 3168. Australia. |