Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ucbcad!ucbvax!ovaltine!velveeta.berkeley.edu!rusty From: rusty@velveeta.berkeley.edu Newsgroups: comp.windows.x Subject: using metafont fonts with X11 Message-ID: <2@ovaltine.berkeley.edu> Date: Thu, 29-Oct-87 22:10:43 EST Article-I.D.: ovaltine.2 Posted: Thu Oct 29 22:10:43 1987 Date-Received: Sat, 14-Nov-87 04:07:45 EST Sender: Unknown@ovaltine.berkeley.edu Reply-To: rusty@velveeta.berkeley.edu () Organization: UC Berkeley Math Department Lines: 69 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 -x -f -s -r is the gf file from Metafont; e.g., cminch.82gf. is the output file; e.g., cminch.bdf. is the font family name and face name separated by a hyphen; e.g., ComputerModern-SansSerif. is the size in points. 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