Browse Source

Fixing #650 regression

notmasteryet 14 years ago
parent
commit
53cfe2792b
  1. 2
      fonts.js
  2. 2
      pdf.js
  3. 2
      test/test_manifest.json

2
fonts.js

@ -441,7 +441,7 @@ var Font = (function Font() { @@ -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

@ -4783,7 +4783,7 @@ var PartialEvaluator = (function partialEvaluator() { @@ -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 = {

2
test/test_manifest.json

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

Loading…
Cancel
Save