diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2012-05-06 02:59:09 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2012-05-06 02:59:09 +0000 |
commit | e32c88ce7825f06c60d6979514ed58eb9d52ad1f (patch) | |
tree | 1d45ab2726cc4afafa30061c6b2ac1b4e6c0992f /Build/source/texk/dvipdfmx/dvipdfmx-20120420 | |
parent | 7d64ebb4d26fdcfa7bb0fe488ee1cb0b5417b3af (diff) |
allow to read a map file without PS name
git-svn-id: svn://tug.org/texlive/trunk@26226 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfmx/dvipdfmx-20120420')
-rw-r--r-- | Build/source/texk/dvipdfmx/dvipdfmx-20120420/ChangeLog | 2 | ||||
-rw-r--r-- | Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/fontmap.c | 18 |
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; |