[tex-k] How dvips loads tfm files for virtual fonts?

Paul Vojta vojta at math.berkeley.edu
Fri Apr 8 09:56:14 CEST 2022

I forget all the details of various dvi drivers, but xdvi doesn't open
any tfm files for your files x.tex and y.tex.

--Paul Vojta

On Fri, Apr 08, 2022 at 01:37:32PM +0700, Igor Liferenko wrote:
> Hi,
> Dvips does not load tfm-files for fonts which are not listed in psfonts.map
> This can be verified with this these commands:
>     echo 'A \bye' >x.tex
>     tex x
>     dvips -Ppdf -d -1 x 2>&1 | grep 'fopen.*tfm' # tfm is opened
>     dvips -Ppk -d -1 x 2>&1 | grep 'fopen.*tfm'  # tfm not opened
> Virtual fonts are not present in map-file.
> But their metrics should be loaded, as these metrics are actually
> used during the typesetting (not the metrics of underlying fonts).
> Let's check:
>     echo '\font\ptm=ptmr7t \ptm A \bye' >y.tex
>     tex y
>     dvips -Ppk -d -1 y 2>&1 | grep 'fopen.*tfm'
> We see that ptmr7t.tfm is not loaded. Why?
> Also, which rules determine that ptmr8r.tfm is loaded? And if a
> virtual font would
> consist of more that one font, will metrics for all of them be loaded?
> Best regards
>   Igor

More information about the tex-k mailing list.