[Pkg-javascript-commits] [pdf.js] 47/207: Handle cases where the fontName contains non-alphanumeric characters (issue 4909)
David Prévot
taffit at moszumanska.debian.org
Mon Jul 28 15:36:28 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 7802a7ab979aaab9f21d2207d5e82539c22fe5c6
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Tue Jun 10 17:25:49 2014 +0200
Handle cases where the fontName contains non-alphanumeric characters (issue 4909)
---
src/core/evaluator.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/evaluator.js b/src/core/evaluator.js
index ee61235..cd57e19 100644
--- a/src/core/evaluator.js
+++ b/src/core/evaluator.js
@@ -1622,7 +1622,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
// Workaround for cases where e.g. fontNameStr = 'Arial' and
// baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
if (fontNameStr && baseFontStr &&
- baseFontStr.search(fontNameStr) === 0) {
+ baseFontStr.indexOf(fontNameStr) === 0) {
fontName = baseFont;
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list