%  Macros to format Unix-style manual pages
%
%  Anthony Starks
%  ajs@merck.com
%
\emergencystretch=20pt
\leftskip=20pt
%\hsize=5.5in
%\vsize=6in
\parskip=4pt
\parindent=0pt
\newdimen\hangsize
\newdimen\lfsize
\lfsize=20pt
\hangsize=2in
\def\th#1#2{%
  \headline={{\bf #1}\hfil {\rm Nifty Hacks}\hfil {\bf #1}}
  \footline={{\sl Printed \the\month/\the\day/\the\year\hfill\folio}}}
\uchyph=1
\def\sect#1{\medskip\leftline{\bf#1}\medskip\leftskip=\lfsize}
\def\name#1{\medskip\leftline{\bf NAME}\medskip #1\medskip\leftskip=\lfsize}
\def\synopsis#1{\medskip\leftline{\bf SYNOPSIS}\medskip #1\medskip\leftskip=\lfsize}
\def\description{\medskip\leftline{\bf DESCRIPTION}\medskip\leftskip=\lfsize}
\def\see{\medskip\leftline{\bf SEE ALSO}\medskip\leftskip=\lfsize}
\def\bugs{\medskip\leftline{\bf BUGS}\medskip\leftskip=\lfsize}
\def\example{\medskip\leftline{\bf EXAMPLE}\medskip\leftskip=\lfsize}
\def\author{\medskip\leftline{\bf AUTHOR}\medskip\leftskip=\lfsize}
\def\files{\medskip\leftline{\bf FILES}\medskip\leftskip=\lfsize}
\def\tool#1{{\it #1\/}}
\def\file#1{{\tt #1\/}}
\def\opt#1{{\it #1\/}}
\def\itb{{\parindent=.5\hangsize\parskip=6pt\item{$\bullet$}}}
\def\ito#1{\leftskip=\hangsize\item{{\it#1}}}
\def\itoito#1{\leftskip=1.2\hangsize\item{{\bf#1}}}
\def\endoptions{\par\leftskip=\lfsize}
\def\tab{\qquad}
\def\newline{\vskip 2\baselineskip}
\def\computer#1{\medskip\qquad{\tt#1}\medskip}
\def\beginlisting{\begingroup\parindent=.75in\parskip=0pt\obeyspaces\obeylines\tt}
\def\endlisting{\endgroup}
%
%  Manual page for fig2MF
%
%  Anthony Starks
%  ajs@merck.com
%
%
\def\F{{\sl fig2MF}}
\name{fig2MF --- convert Fig code to mfpic METAFONT macro code}
\synopsis{fig2MF [options] [files]}
\description
With \F{}, any tool that generates version 2.1 Fig graphics code (such as
the X Windows drawing tool, xfig), can be used as a
METAFONT font creation tool. 

\F{} reads from the named files or from the standard input file if
no files are specified.
The METAFONT code is written to the standard output file. The output
is commented and formatted to aid manual editing.

\F{} supports these Fig objects:
\itb ellipses (and circles)
\itb polylines
\itb splines
\itb arcs

Compound objects are recognized but not are treated specially.

\sect{OPTIONS}
All of \F{}'s options take the form of \file{-opt=value} and
can occur anywhere on the command line. The options effect the
filenames that they precede on the command line, and may be repeated
with different values for different files. For example,
\computer{fig2MF -xpos=4 foo.fig -xpos=5 bar.fig >foobar.fig}
sets the xpos value to 4 for the file \file{foo.fig}, and sets the xpos value
to 5 for the file \file{bar.fig}. All of the other options take their default
values. The METAFONT code is written to the file \file{foobar.mf}.
$$\vbox{
\halign{\tabskip=2em
\tt#\hfil&
#\hfil&
#\hfil\cr
\rm Option&Default Value&Description\cr
\noalign{\medskip\hrule\medskip}
-mag 	&1000&Font magstep\cr
-code 	&32&Initial METAFONT font code value\cr 
-pen 	&0.5&Size of the METAFONT pen (points)\cr 
-xscale &0.125&x coordinate scaling factor\cr 
-yscale &0.125&y coordinate scaling factor\cr 
-xneg 	&0.0&Minimum x coordinate value of the figure (inches)\cr 
-xpos 	&8.0&Maximum x coordinate value of the figure (inches)\cr 
-yneg 	&0.0&Minimum y coordinate value of the figure (inches)\cr 
-ypos 	&8.0&Maximum y coordinate value of the figure (inches)\cr 
-top 	&8.0&Top of the whole coordinate system (inches)\cr
\noalign{\medskip\hrule\medskip}
}}$$
The x, y coordinate and scaling factors are arbitrary and should be adjusted
to fit both the Fig generating tool and the desired size of the font.
\sect{FILES}
graphbase.mf --- mfpic METAFONT macros.
\sect{DIAGNOSTICS}
\F{} complains about inaccessiable files, malformed objects and
input that is not in Fig version 2.1 format.
\bugs
\itb Text objects and EPS boxes are ignored. 

\itb There is no attempt to determine the figure's bounding box.

\itb Arrowed and non-solid lines styles are not supported. 
\see
Thomas Leathrum, {\it Pictures in  \TeX{} with METAFONT}

bm2font(1), xfig(1), fig(4)
\author
Anthony Starks
\bye
