# Cannot resolve Fonts

This means that dviout searched a necessary font by the setting of -TEXROOT: and -TEXPK: but dviout could not find it.
Usually the font and the searched files are shown. The reason may be as follows.
1. In the case when METAFONT had tried to make the font (i.e. the setting of Automatic Font Generation -gen: is defined).
- The font cannot be generated by METAFONT.
For example, a TrueType font should have been used through Virtual font but the TrueType font is not registered by Windows system.
- METAFONT failed to generate the font.
If GEN_TMP.BAT is made in the directory where the Windows temporary directory (which should be defined by the environment variable TMP or TEMP, the execution of it may indicate the cause of the error at the time when this message is shown (without quitting dviout).
This batch file equals the command that dviout executes to generate the font.
Incorrect setting of -gen: or texmf.cnf or the environment variable TMP or TMP or the no existence of mf.exe in the directory indicated the environment variable PATH or incorrect environment variables for METAFONT working under a non-standard shell in the background can be the cause.
- The font was correctly made by mktexpk etc. but dviout could not find it.
Check the directory where the fonts exists (see the following term 2) and compare it with the setting of -gen:, -TEXPK: and texmf.cnf.
Remark. Check the existence and the location of the font to have been made as follows.
2. Incorrect setting of -TEXROOT: or -TEXPK:.
In the case when kpathsearch is supported, kpsewhich.exe indicates the location of the font. For example, in MS-DOS Window, execute it by the command
kpsewhich cmr17.360pk
if the top of the Information Windows with the title Cannot resolve Fonts is as follows
cmr17.360(1800)
Here the second number is equal to 5 times of the resolution in dpi. Moreove
the results of the following commands will be useful:
kpsewhich --expand-braces $TEXMF
kpsewhich --expand-braces $MFINPUTS
kpsewhich --expand-braces $MKTEX_MODE
kpsewhich --expand-braces $PKFONTS
3. The font doesn't exist and cannot be generated.
Substitution of the font by -F: may be used. In this case, make Automatic Font Generation invalid.