Fixing #650 regression

This commit is contained in:
notmasteryet 2011-10-12 17:52:11 -05:00
parent 4c07a362ea
commit 53cfe2792b
3 changed files with 3 additions and 3 deletions

View File

@ -441,7 +441,7 @@ var Font = (function Font() {
if (!file) {
// The file data is not specified. Trying to fix the font name
// to be used with the canvas.font.
var fontName = name.replace(/,_/g, '-');
var fontName = name.replace(/[,_]/g, '-');
fontName = stdFontMap[fontName] || fontName;
this.bold = (fontName.search(/bold/gi) != -1);

2
pdf.js
View File

@ -4783,7 +4783,7 @@ var PartialEvaluator = (function partialEvaluator() {
return null;
// Using base font name as a font name.
baseFontName = baseFontName.name.replace(/,_/g, '-');
baseFontName = baseFontName.name.replace(/[,_]/g, '-');
var metricsAndMap = this.getBaseFontMetricsAndMap(baseFontName);
var properties = {

View File

@ -148,7 +148,7 @@
"file": "pdfs/fips197.pdf",
"link": true,
"rounds": 1,
"type": "load"
"type": "eq"
},
{ "id": "txt2pdf",
"file": "pdfs/txt2pdf.pdf",