mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
Make fonts getting loaded by a very nasty hack
This commit is contained in:
parent
e15328800a
commit
61b76c7e87
4 changed files with 33 additions and 24 deletions
6
fonts.js
6
fonts.js
|
@ -844,13 +844,9 @@ var Font = (function () {
|
|||
postMessage("font");
|
||||
postMessage(JSON.stringify({
|
||||
str: str,
|
||||
mimetype: this.mimetype,
|
||||
fontName: fontName,
|
||||
mimetype: this.mimetype
|
||||
}));
|
||||
|
||||
setTimeout(function() {
|
||||
Fonts[fontName].loading = false;
|
||||
}, kMaxWaitForFontFace);
|
||||
} else {
|
||||
var base64 = window.btoa(str);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue