]> git.parisson.com Git - pdf.js.git/commitdiff
Merge branch 'master' into font
authorsbarman <sbarman@L3CWZ5T.(none)>
Thu, 21 Jul 2011 16:09:25 +0000 (09:09 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Thu, 21 Jul 2011 16:09:25 +0000 (09:09 -0700)
1  2 
fonts.js
pdf.js

diff --cc fonts.js
index ec510a7d129f8e285cb0446d70ba795ecada469a,f33cab9c366071eafe053b5ccb393923962424e3..57e974e12ad7b5cef4ff7f126c87aa63d1422f37
+++ b/fonts.js
@@@ -416,11 -379,9 +385,10 @@@ var Font = (function() 
          warn('Font ' + properties.type + ' is not supported');
          break;
      }
 +
      this.data = data;
      this.type = properties.type;
-     this.id = Fonts.registerFont(name, data, properties);
-     this.loadedName = 'pdfFont' + this.id;
+     this.loadedName = getUniqueName();
      this.compositeFont = properties.compositeFont;
    };
  
diff --cc pdf.js
Simple merge