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

Merge pull request #2215 from yurydelendik/issue-1836

Falls back to ErrorFont when font object is not available or corrupted
This commit is contained in:
Brendan Dahl 2012-10-15 11:51:09 -07:00
commit c67cc874e8
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};
}
};