Skip to content

Commit ca95f59

Browse files
committed
Add comments
1 parent d0b281e commit ca95f59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/type/lib/Typr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Typr["parse"] = function (buff) {
9090

9191

9292
var data = new Uint8Array(buff);
93+
// PATCHED: keep around the compressed data if we inflate it
9394
let compressedData;
9495
if (data[0] == 0x77) {
9596
compressedData = data;
@@ -111,7 +112,7 @@ Typr["parse"] = function (buff) {
111112
return fnts;
112113
}
113114
var fnt = readFont(data, 0, 0, tmap); //console.log(fnt); throw "e";
114-
fnt._compressedData = compressedData;
115+
fnt._compressedData = compressedData; // PATCH: make compressed data accessible
115116
var fvar = fnt["fvar"];
116117
if (fvar) {
117118
var out = [fnt];

0 commit comments

Comments
 (0)