|
|
@ -360,7 +360,10 @@ var FontFaceObject = (function FontFaceObjectClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
FontFaceObject.prototype = { |
|
|
|
FontFaceObject.prototype = { |
|
|
|
createNativeFontFace: function FontFaceObject_createNativeFontFace() { |
|
|
|
createNativeFontFace: function FontFaceObject_createNativeFontFace() { |
|
|
|
if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) { |
|
|
|
if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('MOZCENTRAL')) { |
|
|
|
|
|
|
|
throw new Error('Not implemented: createNativeFontFace'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!this.data) { |
|
|
|
if (!this.data) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
@ -376,9 +379,6 @@ var FontFaceObject = (function FontFaceObjectClosure() { |
|
|
|
this.options.fontRegistry.registerFont(this); |
|
|
|
this.options.fontRegistry.registerFont(this); |
|
|
|
} |
|
|
|
} |
|
|
|
return nativeFontFace; |
|
|
|
return nativeFontFace; |
|
|
|
} else { // eslint-disable-line no-else-return
|
|
|
|
|
|
|
|
throw new Error('Not implemented: createNativeFontFace'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
createFontFaceRule: function FontFaceObject_createFontFaceRule() { |
|
|
|
createFontFaceRule: function FontFaceObject_createFontFaceRule() { |
|
|
|