From 171565129bd31f3c6fd0087a09f1d4cb75a39a01 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Mon, 20 Mar 2023 08:19:47 -0500 Subject: [PATCH] Always update file size on save --- js/nftr.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/nftr.js b/js/nftr.js index d3e5b5f..0e9affe 100644 --- a/js/nftr.js +++ b/js/nftr.js @@ -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");