Fonts for JTeX and MuLTeX
				SAKURAI Takafumi (sakurai@math.s.chiba-u.ac.jp)
				Department of Mathematics and Informatics
				Chiba Univ.


(This document is not finished yet.)

1. Fonts for printing NTT JTeX dvi

Since the fonts in dvi generated by JTeX contain at most 256
characters per font, you can print/preview the dvi without specialized
dvi-driver if you prepare pk files for the fonts.  (Though one
japanese font contains far more than 256 characters, JTeX divides one
font into many fonts that are called subfonts.)  For pk files of JTeX
subfonts, use the proprientary DNP font or the free Watanabe font. The
Watanabe fonts will be found in
	ftp://ftp.math.s.chiba-u.ac.jp/tex/watanabe-dnp/
or some other sites. If you use the dvi-driver which does kpathsea3
search, put the DNP fonts in, for example,
	fonts/pk/modeless/multi/dnp/nttsub
and the Watanabe fonts in, for example,
	fonts/pk/modeless/multi/watanabe/nttsub
(They are modeless.)  They may need to be placed in another places
where your dvi-driver demands.

If you want to use the japanese fonts buit in the japanese printer,
you have to you specialized dvi-driver such as dvi2ps-j.


2. Fonts for printing MuLTeX dvi

MuLTeX generates dvi files which contains two-byte setchar
instructions.  To use the usual dvi-driver, you have to divide the
fonts for two-byte character into subfonts using dvi2dvi.

dvi2dvi or dvi2ps-j divides the japanese fonts into the sufonts used
in JTeX, that is, for example, dm10 is divided into
	dmjsy10, dmjroma10, dmjhira10, ..., dmjka10, ..., dmjkz10
and the other two-byte multi-lingual fonts, for example, cn10 is
divided into
	cnC21C10, cnC23C10, cnC25C10, ..., cnC7dC10
(CXXC specifies the first byte of the character.)  For japanese fonts,
you can use the same pk as JTeX, and for other fonts, you can use
subfonts genereated by the mlfonts package.  It will be found in
	ftp://ftp.math.s.chiba-u.ac.jp/tex/texfam-<version>/

If fonts for MuLTeX are already installed, you will find in $TEXMF
	fonts/vf/mling/mlone	vf for 1byte charset
	      tfm/mling/mlsub	tfm of subfonts of mltwo
	      pk/modeless/mling/mlone	pk of mlone
				mlsub	pk of mlsub
(They might be found in other places.)

Above files can be generated by the tool in mlfonts-<version>.tar.gz.
Therefore, you can generate pk files in case the resolution of
your printer is neither 300 nor 600.


3. Post-processing of dvi file

MuLTeX can specify the program which post-processes dvi generated.
The method is one of the following.  (0,1,2 is the value setup in
compile-time.)
    0 no post-processing.
    1 post-processed only if the env. var TEXDVIFILTER is defined.
    2 post-processed by the default programm which is defined in
      compile time if the env. var TEXDVIFILTER is not defined.
In the case of 1 or 2, the program should get dvi from standard-input.
The %s in the $TEXDVIFILTER is replaced by the name obtained by
removing suffix .dvi from the file name of dvi.  For example, if you
set (in the case of csh)
	setenv TEXDVIFILTER "dvi2dvi -F //mtex -c %s.dvi"
like this, the generated dvi is the one whose fonts are subfonts.
