Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/graphics/fig2mf

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

Files

Name Size Date Notes
README 2120 1993-03-19 01:00
alltypes.fig 3397 1993-03-19 01:00
balls.fig 3448 1993-03-19 01:00
bean.fig 1297 1993-03-19 01:00
book.fig 1321 1993-03-19 01:00
chase.fig 362 1993-03-19 01:00
face.fig 2428 1993-03-19 01:00
fig2MF.c 9932 1993-03-19 01:00
fig2MFman.tex 4133 1993-03-19 01:00
graphbase.mf 24723 1993-03-19 01:00
house.fig 9376 1993-03-19 01:00
many.fig 1312 1993-03-19 01:00
mitsu.fig 253 1993-03-19 01:00
parc-place.fig 374 1993-03-19 01:00
plane.fig 254 1993-03-19 01:00
powells.fig 1910 1993-03-19 01:00
qd.fig 478 1993-03-19 01:00
shade.fig 1215 1993-03-19 01:00
tf 114 1993-03-19 01:00
thick.fig 734 1993-03-19 01:00
type.fig 7273 1993-03-19 01:00

Down­load the con­tents of this pack­age in one zip archive (23.8k).

fig2mf – Con­vert fig out­put to

The gen­er­ated code uses the mf­pic macros.

Pack­age De­tailsfig2mf
Ver­sion0.04
Li­censeDo Not Sell Ex­cept by Ar­range­ment
Copy­right1993 An­thony Starks
Main­tainerAn­thony Starks
Topics con­vert a for­eign graph­ics for­mat for use with TeX
See also fig2mfpic
Guest Book Sitemap Contact