rusty@velveeta.berkeley.edu (10/30/87)
I put the source for a program to convert Metafont gf files to X11 .bdf files on decwrl.dec.com; the file is gftobdf.tar. Here's the README file that comes with it: DESCRIPTION This is a simple program to convert Metafont gf files to X11 bdf files. SYNOPSIS: gftobdf -g <gffont> -x <xfont> -f <fontstyle> -s <pointsize> -r <resolution> <gffont> is the gf file from Metafont; e.g., cminch.82gf. <xfont> is the output file; e.g., cminch.bdf. <fontstyle> is the font family name and face name separated by a hyphen; e.g., ComputerModern-SansSerif. <pointsize> is the size in points. <resolution> is the resolution of the screen. (pixels_per_inch from the Metafont mode_def.) COMMENTS gf.c came from a dvi to PostScript program; I forgot where I got it. The rest of this was done by Francois Dumas, an undergraduate that was working for me last school year. I just split it up into separate files, made a Makefile for it, and made some minor changes to the code. I don't know how correct the .bdf files that it produces are. For example, I didn't know what to put for the properties FONT_DESCENT and FONT_ASCENT so I punted and put 0. The .bdf files can be fed to "fc" without any complaints and displayed by "xfd", but xterm dumped core when I tried to use one with it. Perhaps because they aren't fixed-width. Here is the mode_def that I used with Metafont: % realsun mode: for the Sun Workstation for windows mode_def realsun = proofing := 0; % no, we're not making proofs fontmaking := 1; % yes, we are making a font tracingtitles := 0; % no, don't show titles pixels_per_inch := 82; % really lowres blacker := 0.65; % make the pens a bit blacker fillin := 0.2; % compensate for diagonal fillin o_correction := 0.4; % don't overshoot as much enddef; This might need some tuning, but when I displayed cmbx12 with xfd it looked reasonable. Rusty C. Wright Math Dept. UC Berkeley 29 Oct 87 -------------------------------------- rusty c. wright rusty@weyl.berkeley.edu ucbvax!weyl!rusty