1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Falls back to ErrorFont when font object is not available or corrupted

This commit is contained in:
Yury Delendik 2012-10-15 11:48:45 -05:00
parent 8c3fdd069a
commit 8c3a82ff4d
2 changed files with 14 additions and 8 deletions

View file

@ -4075,6 +4075,9 @@ var ErrorFont = (function ErrorFontClosure() {
ErrorFont.prototype = {
charsToGlyphs: function ErrorFont_charsToGlyphs() {
return [];
},
exportData: function ErrorFont_exportData() {
return {error: this.error};
}
};