CTAN masthead graphic CTAN lion sketch

Directory: CTAN home / tex-archive/ graphics/ fig2mf

You can get this entire directory bundled as fig2mf.zip.

Packages located here

Package Caption
fig2mf Convert fig output to MetaFont.

Subdirectories of this one

There are no subdirectories here.

Files in this directory

NameDateSize Description
README 1993-03-19 2 Kbyte download Shown below
alltypes.fig 1993-03-19 3 Kbyte download
balls.fig 1993-03-19 3 Kbyte download
bean.fig 1993-03-19 1 Kbyte download
book.fig 1993-03-19 1 Kbyte download
chase.fig 1993-03-19 362 bytes download
face.fig 1993-03-19 2 Kbyte download
fig2MF.c 1993-03-19 9 Kbyte download
fig2MFman.tex 1993-03-19 4 Kbyte download
graphbase.mf 1993-03-19 24 Kbyte download
house.fig 1993-03-19 9 Kbyte download
many.fig 1993-03-19 1 Kbyte download
mitsu.fig 1993-03-19 253 bytes download
parc-place.fig 1993-03-19 374 bytes download
plane.fig 1993-03-19 254 bytes download
powells.fig 1993-03-19 1 Kbyte download
qd.fig 1993-03-19 478 bytes download
shade.fig 1993-03-19 1 Kbyte download
tf 1993-03-19 114 bytes download
thick.fig 1993-03-19 734 bytes download
type.fig 1993-03-19 7 Kbyte download

Contents of the README file

Here is fig2MF, a tool to convert fig 2.1 input to METAFONT. The 
generated METAFONT code uses the mfpic macros.

Fig2MF should compile with any C compiler known to man. Under Unix,
just say:

	make fig2MF

Usage is straightforward:

	fig2mf file.fig >foo.mf
	mf '\mode:=localfont; input foo.mf'
	tex '\font\foo=foo \foo \char33 \bye'

In order to use the font you've just created, you must
place the mfpic macros where METAFONT will find them, and
adjust your TeX environment to recognize the .tfm and
.gf files. You may also convert the .gf file to .pk format.


Fig2MF has a few options:

Option    Default Description
------------------------------------------------------------------------
-mag 	  1000   Font magstep
-code 	  32     Initial METAFONT font code value
-pen 	  0.5    Size of the METAFONT pen (points)
-xscale   0.125  x coordinate scaling factor
-yscale   0.125  y coordinate scaling factor
-xneg 	  0.0    Minimum x coordinate value of the figure (inches)
-xpos 	  8.0    Maximum x coordinate value of the figure (inches)
-yneg 	  0.0    Minimum y coordinate value of the figure (inches)
-ypos 	  8.0    Maximum y coordinate value of the figure (inches)
-top 	  8.0    Top of the whole coordinate system (inches)
-----------------------------------------------------------------------

The options are specified in the form of -opt=value. For example:

	fig2MF -xscale=0.25 -xpos=4.0 foo.fig
--------------------------------------------------------------------------

Enclosed is:

fig2MF.c		source code
fig2MFman.tex		manual
graphbase.mf		mfpic macros
tf			shell script to test new fonts

Samples fig files:

alltypes.fig
balls.fig
bean.fig
book.fig
chase.fig
face.fig
house.fig
many.fig
mitsu.fig
parc-place.fig
plane.fig
powells.fig
qd.fig
shade.fig
thick.fig
type.fig

--------------------------------------------------------------------------

Thanks go to Thomas Leathrum for creating the mfpic METAFONT macros.
Geoffery Tobin contributed ideas, fruitful discussion and the 
enhanced mfpic macros.

I'd dearly love to receive any bug fixes and enhancements. 
---
Anthony Starks
ajs@merck.com


Small print: This listing is regenerated periodically so there is a small chance that the directory has changed from what is shown here; to be sure, check the FTP listing.