From 23eedd602689c3c8d52dcf5deadd50b7819e7131 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 16 Jul 2016 13:37:38 +0000 Subject: 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 --- Build/source/texk/web2c/pdftexdir/ChangeLog | 6 ++++++ Build/source/texk/web2c/pdftexdir/pdftoepdf.cc | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + * 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 and Akira Kakuto 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()); -- cgit v1.2.3