mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Let Chrome (and others?) show TrueType fonts
This commit is contained in:
parent
a7d521dfa9
commit
ac5db21fb1
1 changed files with 1 additions and 1 deletions
2
fonts.js
2
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue