# Examples of TEXPK Settings

Example 1.
In the case of the most common TeX system with kpathsearch and the environment variable TEXMFMAIN or TEXMF, the specification in -TEXROOT: and -TEXPK: would be
-TEXROOT:^T\fonts
-TEXPK:^r\pk<<>><<>>^s.^dpk;^r\tfm<<>><<>>^s.tfm;^r\vf<<>><<>>^s.vf
Here ^T, ^r, \, ^s and ^d correspond to the environment variable TEXMFMAIN or TEXMF, the parameter -TEXROOT:, any sequence of directory names, the font name and the resolution, respectively.
Under this setting it is slow to start dviout at the first time but it will be faster from the next time because of the cashing of the location of fonts(cf.-Fkeep:).
PK fonts, TrueType fonts and Virtual fonts are indicated in this order(cf.-TEXPK:). If you want to use different types of PK fonts according to printers, you should replace the first part of -TEXPK: by, for example,
^r\pk\cx<<>><<>>^s.^dpk;^r\pk\modeless\^s.^dpk.
If European Language TrueType Fonts are registered, they will be used.
If you want them to have priority over PK fonts, move ^r\tfm<<>><<>>^s.tfm at the top of -TEXPK:. Virtual fonts are also supported(-virtual:). In case of Omega, ^r\ovf<<>><<>>^s.ovf will be indicated.
If Virtual fonts are used for Japanese fonts, use ^r\tfm<<>><<>>^s^tfm in place of ^r\tfm<<>><<>>^s.tfm. For example,
-TEXPK:^r\tfm<<>><<>>^s^tfm;^r\pk\^s.^dpk;^r\vf\^s.vf;^r\tfm\^s.tfm;
If some fonts exist under e:\myfonts in the same way as under ^T\fonts and both fonts will be used, then we may indicate
-TEXROOT:e:\myfonts;^T\fonts
Here the former e:\myfonts has the priority to the latter.
Example 2.
In the case when you have all the European language fonts in c:\tex\texmf\fonts\pk, for example, the path for 300 dpi in cmbx10 is
c:\tex\texmf\fonts\pk\cmbx10.300pk
and the jfm file Japanese font in c:\tex\texmf\fonts\public\ptex\tfm, for example, for min8 as in
c:\tex\texmf\fonts\public\ptex\tfm\min8.tfm
then the specification in -TEXROOT: and -TEXPK: would be
-TEXROOT:c:\tex\texmf\fonts
-TEXPK:^r\pk\^s.^dpk;^r\public\ptex\tfm\^s.tfm
In this case, other font files, for example, the font file for the 360dpi of lcircle10 should be found as
c:\tex\texmf\fonts\pk\lcircle10.360pk.
Example 3.
In the case when the paths of your European language PK fonts files are like
c:\tex\fonts\cm\dpi300\cmbx10.pk
and
c:\tex\fonts\latex\dpi360\lcircle1.pk
(cmbx100 of 300 dpi font and lcirclie10 of 360 dpi font), and the Japanese font metric jfm file is in the same manner as the first Example 1, then
-TEXROOT:c:\tex\fonts
-TEXPK:^r\cm\dpi^d\^s.pk;^r\latex\dpi^d\^s.pk;c:\tex\texmf\fonts\public\ptex\tfm\^s.tfm
cut long name: last part(-L: 0)
Note: -TEXPK: above can be set to
-TEXPK:^r<<>><<>>dpi^d\^s.pk;c:\tex\texmf\fonts\public\ptex\tfm\^s.tfm
(<<>><<>> is replaced by a directory name of any length.) However, if <<>><<>> is used and -Fkeep: is OFF(particularly, when used from a location near the root directory), the font search takes time, and starting dviout becomes slow.
Example 4.
In the case when you have European Language TrueType Fonts like cmr10, cmr8 and European language PK fonts like
c:\tex\fonts\pk\msbm10.300pk
then TrueType Fonts are specified in Property Sheets->[WinJFont] (individual specification is unnecessary by using edefault)and the corresponding tfm files are indicated by -TEXPK:
But any tfm file which is not corresponding to a TrueType font is better not to be matched in -TEXPK:
It is recommended to make a new directory, copy tfm files for TrueType fonts in a special directory and indicated them in -TEXPK:
Suppose the tfm files are copied in c:\tex\fonts\ttf\tfm and Japanese font metric jfm files have the path names like
c:\tex\fonts\jfm\min8.tfm
Then -TEXPK: would be
-TEXROOT:c:\tex\fonts
-TEXPK:c:^r\pk\^s.^dpk;^r\ttf\tfm\^s.tfm;^r\jfm\^s.tfm
Note: The end of -TEXPK: should not be replaced by ^r<<>><<>>^s.tfm. (In addition to c:\tex\fonts\pk\msbm10.300pk, c:\tex\fonts\tfm\msbm10.tfm also matches.)
Example 5.
In the case when your European language PK fonts are collected in the GTH Font Library at each resolution.
For example, the 300dpi cmbx10 is inserted with the file name of cmbx10.pk in the GTH font library c:\tex\fonts\dpi300.gth.
Also your Japanese jfm file are collected in the GTH font library of c:\tex\fonts\jfm.gth, then the specification in -TEXROOT: and -TEXPK: would be
-TEXROOT:c:\tex\fonts
-TEXPK:^r\dpi^d^g^s.pk;^r\jfm^g^s.tfm