Always update file size on save

This commit is contained in:
Pk11 2023-03-20 08:19:47 -05:00
parent b4405b4869
commit 171565129b

View File

@ -159,6 +159,9 @@ function saveFont() {
fontU8.set(fontWidths[i], offset + (i * 3));
}
// Update file size
data.setUint32(0x8, fontU8.length, true);
// Download the file
let blob = new Blob([fontU8], {type: "application/octet-stream"});
let a = document.createElement("a");