]> git.parisson.com Git - pdf.js.git/commitdiff
Let Chrome (and others?) handle Type1 Fonts (TrueType not working yet)
authorVivien Nicolas <21@vingtetun.org>
Sun, 3 Jul 2011 12:52:00 +0000 (14:52 +0200)
committerVivien Nicolas <21@vingtetun.org>
Sun, 3 Jul 2011 12:52:00 +0000 (14:52 +0200)
fonts.js

index 808553ce9a2858e290cd3f667f3164d9f6d9d6eb..ebbd0c0b8f0698ee93a2549a42812359a5053c34 100644 (file)
--- a/fonts.js
+++ b/fonts.js
@@ -1656,7 +1656,7 @@ CFF.prototype = {
     };
 
     charstrings.sort(function charstrings_sort(a, b) {
-      return a.unicode > b.unicode;
+      return a.unicode - b.unicode;
     });
     return charstrings;
   },