texlive[52052] Build/source/texk/dvipdfm-x: show appropriate message

commits+kakuto at tug.org commits+kakuto at tug.org
Sun Sep 8 08:09:03 CEST 2019


Revision: 52052
          http://tug.org/svn/texlive?view=revision&revision=52052
Author:   kakuto
Date:     2019-09-08 08:09:03 +0200 (Sun, 08 Sep 2019)
Log Message:
-----------
show appropriate message if unsupported pfa is used

Modified Paths:
--------------
    trunk/Build/source/texk/dvipdfm-x/ChangeLog
    trunk/Build/source/texk/dvipdfm-x/dvi.c

Modified: trunk/Build/source/texk/dvipdfm-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/ChangeLog	2019-09-07 23:47:38 UTC (rev 52051)
+++ trunk/Build/source/texk/dvipdfm-x/ChangeLog	2019-09-08 06:09:03 UTC (rev 52052)
@@ -1,3 +1,9 @@
+2019-09-08  Akira Kakuto  <kakuto at w32tex.org>
+
+	* dvi.c: Show appropriate message if unsupported pfa
+	is used. Reported in
+	https://tug.org/pipermail/dvipdfmx/2019-September/000031.html.
+
 2019-08-24  Shunsaku Hirata  <shunsaku.hirata74 at gmail.com>
 
 	* dpxutil.c: Timezone offset is incremented by 1 hour if

Modified: trunk/Build/source/texk/dvipdfm-x/dvi.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/dvi.c	2019-09-07 23:47:38 UTC (rev 52051)
+++ trunk/Build/source/texk/dvipdfm-x/dvi.c	2019-09-08 06:09:03 UTC (rev 52052)
@@ -1,6 +1,6 @@
 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
 
-    Copyright (C) 2002-2018 by Jin-Hwan Cho and Shunsaku Hirata,
+    Copyright (C) 2002-2019 by Jin-Hwan Cho and Shunsaku Hirata,
     the dvipdfmx project team.
 
     Copyright (C) 2012-2015 by Khaled Hosny <khaledhosny at eglug.org>
@@ -921,8 +921,15 @@
         WARN(">> Please check if kpathsea library can find this font: %s", mrec1->font_name);
       }
     } else if (mrec && !mrec->map_name) {
-      WARN(">> This font is mapped to a physical font \"%s\".", mrec->font_name);
-      WARN(">> Please check if kpathsea library can find this font: %s", mrec->font_name);
+      char *finaldot = strrchr(mrec->font_name, '.');
+      if (finaldot && strcasecmp(finaldot, ".pfa") == 0) {
+        /* type1 fonts with pfa format are not supported */
+        WARN("This font is mapped to a physical font \"%s\".", mrec->font_name);
+        ERROR("Sorry, pfa format not supported; please convert the font to pfb, e.g., with t1binary.");
+      } else {
+        WARN(">> This font is mapped to a physical font \"%s\".", mrec->font_name);
+        WARN(">> Please check if kpathsea library can find this font: %s", mrec->font_name);
+      }
     } else {
       WARN(">> There are no valid font mapping entry for this font.");
       WARN(">> Font file name \"%s\" was assumed but failed to locate that font.", tfm_name);



More information about the tex-live-commits mailing list