summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx/dvipdfmx-20120420
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfmx/dvipdfmx-20120420')
-rw-r--r--Build/source/texk/dvipdfmx/dvipdfmx-20120420/ChangeLog2
-rw-r--r--Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/fontmap.c18
2 files changed, 12 insertions, 8 deletions
diff --git a/Build/source/texk/dvipdfmx/dvipdfmx-20120420/ChangeLog b/Build/source/texk/dvipdfmx/dvipdfmx-20120420/ChangeLog
index d088d78d8af..d1b67915c5f 100644
--- a/Build/source/texk/dvipdfmx/dvipdfmx-20120420/ChangeLog
+++ b/Build/source/texk/dvipdfmx/dvipdfmx-20120420/ChangeLog
@@ -4,7 +4,7 @@ ChangeLog: Changes for DVIPDFMx
===============================
2012-05-06 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
- * fontmap.c: fix a typo
+ * fontmap.c: fix a typo. allow pdftex.map without PS name.
2012-04-20 Norbert Preining <preining@logic.at>
diff --git a/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/fontmap.c b/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/fontmap.c
index 11aa8f81546..f0c701bd8c3 100644
--- a/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/fontmap.c
+++ b/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/fontmap.c
@@ -566,13 +566,17 @@ fontmap_parse_mapdef_dps (fontmap_rec *mrec,
skip_blank(&p, endptr);
/* The first field (after TFM name) must be PostScript name. */
- if (p < endptr) {
- q = parse_string_value(&p, endptr);
- if (q) RELEASE(q);
- skip_blank(&p, endptr);
- } else {
- WARN("Missing a PostScript font name.");
- return -1;
+ /* However, pdftex.map allows a line without PostScript name. */
+
+ if (*p != '"' && *p != '<') {
+ if (p < endptr) {
+ q = parse_string_value(&p, endptr);
+ if (q) RELEASE(q);
+ skip_blank(&p, endptr);
+ } else {
+ WARN("Missing a PostScript font name.");
+ return -1;
+ }
}
if (p >= endptr) return 0;