Browse Source

Merge pull request #391 from kkujala/master

Fix gjslint errors.
Chris Jones 14 years ago
parent
commit
5f6f3991db
  1. 3
      fonts.js
  2. 2
      pdf.js

3
fonts.js

@ -1891,7 +1891,8 @@ CFF.prototype = {
return null; return null;
}, },
getOrderedCharStrings: function cff_getOrderedCharStrings(glyphs, properties) { getOrderedCharStrings: function cff_getOrderedCharStrings(glyphs,
properties) {
var charstrings = []; var charstrings = [];
var missings = []; var missings = [];

2
pdf.js

@ -4399,7 +4399,7 @@ var PartialEvaluator = (function() {
var fontName = fontDict.get('Name'); var fontName = fontDict.get('Name');
if (!fontName) if (!fontName)
fontName = xref.fetchIfRef(descriptor.get('FontName'));; fontName = xref.fetchIfRef(descriptor.get('FontName'));
assertWellFormed(IsName(fontName), 'invalid font name'); assertWellFormed(IsName(fontName), 'invalid font name');
fontName = fontName.name.replace(/[\+,\-]/g, '_'); fontName = fontName.name.replace(/[\+,\-]/g, '_');

Loading…
Cancel
Save