summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authord1ngd0 <paul.david.montag@gmail.com>2018-12-17 16:26:42 -0600
committerKurt Jung <kurt.w.jung@gmail.com>2018-12-17 17:26:42 -0500
commit55a774389a811b454a9ee3dfa78bd28fc5d0ab18 (patch)
treeec312ff7e022151f5f0b97bfcbcaf452e5ba62f5 /def.go
parent580543bbbf6ba6a65b8aa9cdbf7d15069d651cb5 (diff)
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.
Diffstat (limited to 'def.go')
-rw-r--r--def.go2
1 files changed, 1 insertions, 1 deletions
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 {