1
0
Fork 0
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:
Julian Viereck 2011-06-22 09:15:55 +02:00
parent e15328800a
commit 61b76c7e87
4 changed files with 33 additions and 24 deletions

View file

@ -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);