Let Chrome (and others?) show TrueType fonts
This commit is contained in:
parent
a7d521dfa9
commit
ac5db21fb1
2
fonts.js
2
fonts.js
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user