From: Vivien Nicolas <21@vingtetun.org> Date: Sun, 3 Jul 2011 20:29:46 +0000 (+0200) Subject: Let Chrome (and others?) show TrueType fonts X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ac5db21fb1f9fe4885b88059f170bfb7a4834132;p=pdf.js.git Let Chrome (and others?) show TrueType fonts --- diff --git a/fonts.js b/fonts.js index ebbd0c0..12d7ce8 100644 --- a/fonts.js +++ b/fonts.js @@ -905,7 +905,7 @@ var Font = (function () { // Tables needs to be written by ascendant alphabetic order tables.sort(function tables_sort(a, b) { - return a.tag > b.tag; + return (a.tag > b.tag) - (a.tag < b.tag); }); // rewrite the tables but tweak offsets