[dvipdfmx] Font format is determined as OFM for TFM fonts
Igor Liferenko
igor.liferenko at gmail.com
Wed Apr 14 04:55:43 CEST 2021
Hi,
The following code on lines 887--890 of dvipdfm-x/tfm.c must be removed
else if ((file_name =
kpse_find_file(tfm_name, kpse_ofm_format, 0)) != NULL) {
format = OFM_FORMAT;
}
Firstly, this code is not necessary anyway, because OFM file is
already searched first.
And secondly, this code causes a bug:
if a tfm-file is found in OFMFONTS path, then
font type is determined as OFM_FORMAT.
So, ofm_open() is called for this tfm-file. This produces an error.
I think the person who wrote this code blindly copied it from what is now
between #if 0 ... #endif on lines 862--868 of dvipdfm-x/tfm.c
This code has this call:
kpse_find_file(tfm_name, kpse_ofm_format, 0)
which is wrong: instead of tfm_name there should be ofm_name.
Best,
Igor
More information about the dvipdfmx
mailing list.