mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
properly fix font loading, shaon's code didn't work after all
This commit is contained in:
parent
83a5ecf456
commit
5bf4fcba9b
1 changed files with 2 additions and 3 deletions
5
fonts.js
5
fonts.js
|
@ -154,9 +154,8 @@ var FontLoader = {
|
|||
'message',
|
||||
function(e) {
|
||||
var fontNames = JSON.parse(e.data);
|
||||
// set all the fonts to loaded (not sure if this is correct)
|
||||
for (var i = 0; i < ids.length; ++i) {
|
||||
var font = Fonts.lookupById(ids[i]);
|
||||
for (var i = 0; i < fontNames.length; ++i) {
|
||||
var font = Fonts.lookupById(fontNames[i].substring(7) | 0);
|
||||
font.loading = false;
|
||||
}
|
||||
var evt = document.createEvent('Events');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue