summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-06-24 00:02:53 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-06-24 00:02:53 +0000
commit3a5d3a383a8ac64a2baf5648862f11599b0f78f7 (patch)
treef0be3b251f22b0633a76abe797b216791a65a636 /Build/source
parent91e1a0268705fed13c9d902755c55a08409c0ab6 (diff)
ttfdump.c: allow a suffix .TTC for ttc fonts.
git-svn-id: svn://tug.org/texlive/trunk@44679 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/ttfdump/ChangeLog4
-rw-r--r--Build/source/texk/ttfdump/src/ttfdump.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/Build/source/texk/ttfdump/ChangeLog b/Build/source/texk/ttfdump/ChangeLog
index c86848cfe1b..31598be70e8 100644
--- a/Build/source/texk/ttfdump/ChangeLog
+++ b/Build/source/texk/ttfdump/ChangeLog
@@ -1,3 +1,7 @@
+2017-06-24 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * src/ttfdump.c: allow a suffix .TTC for ttc fonts.
+
2017-06-23 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
* src/ttfdump.c: avoid segmentation fault when the requested
diff --git a/Build/source/texk/ttfdump/src/ttfdump.c b/Build/source/texk/ttfdump/src/ttfdump.c
index e0d71efebad..50315f12ee9 100644
--- a/Build/source/texk/ttfdump/src/ttfdump.c
+++ b/Build/source/texk/ttfdump/src/ttfdump.c
@@ -160,7 +160,7 @@ main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
- if (strstr (ttfname, "ttc") != NULL)
+ if (strstr (ttfname, "ttc") != NULL || strstr (ttfname, "TTC") != NULL)
{
ttc = ttfLoadTTCHeader(ttfname);
@@ -180,7 +180,7 @@ main(int argc, char *argv[])
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 @@ main(int argc, char *argv[])
}
}
- if (strstr(ttfname, "ttc") != NULL)
+ if (strstr(ttfname, "ttc") != NULL || strstr(ttfname, "TTC") != NULL)
{
ttfFreeTTCFont(ttc);
}