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:
commit
c67cc874e8
2 changed files with 14 additions and 8 deletions
|
@ -4075,6 +4075,9 @@ var ErrorFont = (function ErrorFontClosure() {
|
|||
ErrorFont.prototype = {
|
||||
charsToGlyphs: function ErrorFont_charsToGlyphs() {
|
||||
return [];
|
||||
},
|
||||
exportData: function ErrorFont_exportData() {
|
||||
return {error: this.error};
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue