From ac5db21fb1f9fe4885b88059f170bfb7a4834132 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Sun, 3 Jul 2011 22:29:46 +0200 Subject: [PATCH] Let Chrome (and others?) show TrueType fonts --- fonts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fonts.js b/fonts.js index ebbd0c0b8..12d7ce82e 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