From 55a774389a811b454a9ee3dfa78bd28fc5d0ab18 Mon Sep 17 00:00:00 2001 From: d1ngd0 Date: Mon, 17 Dec 2018 16:26:42 -0600 Subject: Fixed id collisions with fonts when encoding and decoding (#220) - Made font id a string which is a sha1 sum of the contents of the json file. --- def.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'def.go') diff --git a/def.go b/def.go index 3c4d902..1187c8f 100644 --- a/def.go +++ b/def.go @@ -681,9 +681,9 @@ type fontDefType struct { File string // "Redressed.z" Size1, Size2 int // Type1 values OriginalSize int // Size of uncompressed font file - I int // 1-based position in font list, set by font loader, not this program N int // Set by font loader DiffN int // Position of diff in app array, set by font loader + i string // 1-based position in font list, set by font loader, not this program } type fontInfoType struct { -- cgit v1.2.1-24-ge1ad