Template for Font Creation
Example 1 : Example using mktexpk or MakeTeXPK of kpathsea
%1st
%2nd
mktexpk ^s ^d ^D ^M
%3rd
For this purpose, mktexpk must be on your path.
If a vesion of mktexpk is used, the above line contains mktexpk should be
mktexpk --dpi ^d --bdpi ^D --mag ^M ^s
The above mktexpk should be replaced MaKeTeXPK if MaKeTeXPK is used.
In this example, the mode name is referred to "MAKETEXPK_MODE_..." defined in texmf.cnf.
If you want define a mode name explicitly, see Example 2.
Note that the line after %2nd must be
mktexpk ^s ^d ^D ^M ^n
or
mktexpk --dpi ^d --bdpi ^D --mag ^M --mfmode ^n ^s
or specify the mode name instead of ^n (cf. the attached utility\template.kp0 and utility\template.kps)
If the font creation command is written in one line at %2nd, you can directly specify them in -gen:, for example,
`c:\usr\local\bin\mktexpk.exe ^s ^d ^D ^M CanonCX
with ` at the beginning.
Example 2
###########################################
mode_name=118:bitgraph
mode_name=300:CanonCX
#
%1st
#
echo off
rem
#
%2nd
#
virmf &cmplain :=^n; mag:=^m; input ^s
gftopk ^s.^dgf ^s.pk
rem
#
%3rd
#
echo Done!
############################################
If the font "cmr10 scaled 5000" is not found, gen_tmp.bat with the following contents is created and executed in the child process.
echo off
rem
virmf &cmplain \mode:=bitgraph; mag:=5.000000; input cmr10
gftopk cmr10.590gf cmr10.pk
rem
echo Done!
If the child process failed to create the font "cmr10 scaled 5000", gen_font.bat with the following contents is created.
echo off
rem
virmf &cmplain \mode:=bitgraph; mag:=5.000000; input cmr10
gftopk cmr10.590gf cmr10.pk
rem
echo Done!