Fix gjslint errors.

This commit is contained in:
Kalervo Kujala 2011-08-26 23:55:14 +03:00
parent 25f6ad4ba6
commit edd92c9db2
2 changed files with 3 additions and 2 deletions

View File

@ -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
View File

@ -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, '_');