summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/pdftexdir/pdftoepdf.cc6
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
index cfbee167d4a..1ecf35dc352 100644
--- a/Build/source/texk/web2c/pdftexdir/ChangeLog
+++ b/Build/source/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,7 @@
+2016-11-05 Karl Berry <karl@tug.org>
+
+ * pdftoepdf.cc: doc fix.
+
2016-07-16 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* pdftoepdf.cc: Use zround(stemV->getNum()) instead of stemV->getInt()
diff --git a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
index 4ba15452cea..4db0c90a639 100644
--- a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
+++ b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
@@ -1,5 +1,5 @@
/*
-Copyright 1996-2014 Han The Thanh, <thanh@pdftex.org>
+Copyright 1996-2016 Han The Thanh, <thanh@pdftex.org>
This file is part of pdfTeX.
@@ -426,7 +426,9 @@ static void copyFont(char *tag, Object * fontRef)
&ffsubtype)->isName()
&& !strcmp(ffsubtype->getName(), "Type1C")))
&& (fontmap = lookup_fontmap(basefont->getName())) != NULL) {
- // copy the value of /StemV
+ // round /StemV value, since the PDF input is a float
+ // (see Font Descriptors in PDF reference), but we only store an
+ // integer, since we don't want to change the struct.
fontdesc->dictLookup("StemV", &stemV);
fd = epdf_create_fontdescriptor(fontmap, zround(stemV->getNum()));
if (fontdesc->dictLookup("CharSet", &charset) &&