We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b281e commit ca95f59Copy full SHA for ca95f59
src/type/lib/Typr.js
@@ -90,6 +90,7 @@ Typr["parse"] = function (buff) {
90
91
92
var data = new Uint8Array(buff);
93
+ // PATCHED: keep around the compressed data if we inflate it
94
let compressedData;
95
if (data[0] == 0x77) {
96
compressedData = data;
@@ -111,7 +112,7 @@ Typr["parse"] = function (buff) {
111
112
return fnts;
113
}
114
var fnt = readFont(data, 0, 0, tmap); //console.log(fnt); throw "e";
- fnt._compressedData = compressedData;
115
+ fnt._compressedData = compressedData; // PATCH: make compressed data accessible
116
var fvar = fnt["fvar"];
117
if (fvar) {
118
var out = [fnt];
0 commit comments