]> git.parisson.com Git - pdf.js.git/commitdiff
fix to font loading code
authorsbarman <sbarman@L3CWZ5T.(none)>
Sat, 9 Jul 2011 01:24:22 +0000 (18:24 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Sat, 9 Jul 2011 01:24:22 +0000 (18:24 -0700)
fonts.js

index 7bdf7cefce6dccb11761fa746a9fc473c98fe32e..289f136728f4732fc02df51011a10222ee377aea 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -184,7 +184,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;
             }