Let Chrome (and others?) show TrueType fonts

This commit is contained in:
Vivien Nicolas 2011-07-03 22:29:46 +02:00
parent a7d521dfa9
commit ac5db21fb1

View File

@ -905,7 +905,7 @@ var Font = (function () {
// Tables needs to be written by ascendant alphabetic order // Tables needs to be written by ascendant alphabetic order
tables.sort(function tables_sort(a, b) { 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 // rewrite the tables but tweak offsets