diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-07-16 13:37:38 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-07-16 13:37:38 +0000 |
commit | 23eedd602689c3c8d52dcf5deadd50b7819e7131 (patch) | |
tree | aac5b771cdc538e8eaff8a549b0d6c9170a0e209 /Build/source/texk/web2c/pdftexdir | |
parent | 6e62691353ba67d705f0a05a50bf340ceb751c29 (diff) |
pdftexdir/pdftoepdf.cc: Use zround(stemV->getNum()) instead of stemV->getInt() in epdf_create_fontdescriptor()
git-svn-id: svn://tug.org/texlive/trunk@41713 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/pdftoepdf.cc | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog index 05f7aa7ede1..cfbee167d4a 100644 --- a/Build/source/texk/web2c/pdftexdir/ChangeLog +++ b/Build/source/texk/web2c/pdftexdir/ChangeLog @@ -1,3 +1,9 @@ +2016-07-16 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * pdftoepdf.cc: Use zround(stemV->getNum()) instead of stemV->getInt() + in epdf_create_fontdescriptor(), since the value of stemV may be real + in general. + 2016-06-12 Karl Berry <karl@freefriends.org> and Akira Kakuto <kakuto@fuk.kindai.ac.jp> diff --git a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc index 253024fe8f1..4ba15452cea 100644 --- a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc +++ b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc @@ -71,6 +71,7 @@ extern "C" { // does not allow it. extern int getpdfsuppresswarningpagegroup(void); extern integer getpdfsuppressptexinfo(void); +extern integer zround(double); } // The prefix "PTEX" for the PDF keys is special to pdfTeX; @@ -427,7 +428,7 @@ static void copyFont(char *tag, Object * fontRef) && (fontmap = lookup_fontmap(basefont->getName())) != NULL) { // copy the value of /StemV fontdesc->dictLookup("StemV", &stemV); - fd = epdf_create_fontdescriptor(fontmap, stemV->getInt()); + fd = epdf_create_fontdescriptor(fontmap, zround(stemV->getNum())); if (fontdesc->dictLookup("CharSet", &charset) && charset->isString() && is_subsetable(fontmap)) epdf_mark_glyphs(fd, charset->getString()->getCString()); |