diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-03-04 04:18:32 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-03-04 04:18:32 +0000 |
commit | afc5ee21bbacfb331d2262419ed90c3d521d24d7 (patch) | |
tree | d1e5b90ead68ab065249568942312a45e505d5f8 /Build/source/texk/dvipdfm-x/pdfdev.c | |
parent | cc8c623904f7e0966f423bbbc81cdf489bbd78a1 (diff) |
fix to call mktexpk with correct arguments
git-svn-id: svn://tug.org/texlive/trunk@58110 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfdev.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfdev.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfdev.c b/Build/source/texk/dvipdfm-x/pdfdev.c index 29980b5ade8..403c523b3a5 100644 --- a/Build/source/texk/dvipdfm-x/pdfdev.c +++ b/Build/source/texk/dvipdfm-x/pdfdev.c @@ -1,6 +1,6 @@ /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. - Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata, + Copyright (C) 2002-2021 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu> @@ -1243,11 +1243,22 @@ pdf_dev_eop (void) static void print_fontmap (const char *font_name, fontmap_rec *mrec) { + char *p; if (!mrec) return; MESG("\n"); +/* + The extension ".pfb" is not needed for type1 fonts. + And the extension ".pfb" prohibits to call mktexpk with right + arguments when pdftex.map is used and when type1 is not found. + Thus we discard the extension ".pfb". +*/ + p = strrchr(mrec->font_name, '.'); + if (p && strcasecmp(p, ".pfb") == 0) + *p = '\0'; + MESG("fontmap: %s -> %s", font_name, mrec->font_name); if (mrec->enc_name) MESG("(%s)", mrec->enc_name); |