mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Merge pull request #224 from sbarman/master
fix to bug with detected font loading
This commit is contained in:
commit
3fb2b026bf
1 changed files with 2 additions and 1 deletions
3
fonts.js
3
fonts.js
|
@ -154,7 +154,8 @@ var FontLoader = {
|
|||
'message',
|
||||
function(e) {
|
||||
var fontNames = JSON.parse(e.data);
|
||||
for (var i = 0; i < fontNames.length; ++i) {
|
||||
// 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]);
|
||||
font.loading = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue