texlive[44679] Build/source/texk/ttfdump: ttfdump.c: allow a suffix

commits+kakuto at tug.org commits+kakuto at tug.org
Sat Jun 24 02:02:53 CEST 2017


Revision: 44679
          http://tug.org/svn/texlive?view=revision&revision=44679
Author:   kakuto
Date:     2017-06-24 02:02:53 +0200 (Sat, 24 Jun 2017)
Log Message:
-----------
ttfdump.c: allow a suffix .TTC for ttc fonts.

Modified Paths:
--------------
    trunk/Build/source/texk/ttfdump/ChangeLog
    trunk/Build/source/texk/ttfdump/src/ttfdump.c

Modified: trunk/Build/source/texk/ttfdump/ChangeLog
===================================================================
--- trunk/Build/source/texk/ttfdump/ChangeLog	2017-06-23 22:11:40 UTC (rev 44678)
+++ trunk/Build/source/texk/ttfdump/ChangeLog	2017-06-24 00:02:53 UTC (rev 44679)
@@ -1,3 +1,7 @@
+2017-06-24  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	* src/ttfdump.c: allow a suffix .TTC for ttc fonts.
+
 2017-06-23  Hironobu Yamashita  <h.y.acetaminophen at gmail.com>
 
 	* src/ttfdump.c: avoid segmentation fault when the requested

Modified: trunk/Build/source/texk/ttfdump/src/ttfdump.c
===================================================================
--- trunk/Build/source/texk/ttfdump/src/ttfdump.c	2017-06-23 22:11:40 UTC (rev 44678)
+++ trunk/Build/source/texk/ttfdump/src/ttfdump.c	2017-06-24 00:02:53 UTC (rev 44679)
@@ -160,7 +160,7 @@
     exit(EXIT_FAILURE);
   }
 
-  if (strstr (ttfname, "ttc") != NULL)
+  if (strstr (ttfname, "ttc") != NULL || strstr (ttfname, "TTC") != NULL)
   {
     ttc = ttfLoadTTCHeader(ttfname);
 
@@ -180,7 +180,7 @@
     exit(EXIT_FAILURE);
 
   print_prologue(dp_file);
-  if (strstr(ttfname, "ttc") != NULL)
+  if (strstr(ttfname, "ttc") != NULL || strstr(ttfname, "TTC") != NULL)
   {
     print_ttc(ttc, dp_file);
   }
@@ -216,7 +216,7 @@
     }
   }
 
-  if (strstr(ttfname, "ttc") != NULL)
+  if (strstr(ttfname, "ttc") != NULL || strstr(ttfname, "TTC") != NULL)
   {
     ttfFreeTTCFont(ttc);
   }



More information about the tex-live-commits mailing list