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. --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'template.go') diff --git a/template.go b/template.go index fc6e29c..e3e4fe5 100644 --- a/template.go +++ b/template.go @@ -128,7 +128,7 @@ func (f *Fpdf) templateFontCatalog() { } for _, key = range keyList { font = f.fonts[key] - f.outf("/F%d %d 0 R", font.I, font.N) + f.outf("/F%s %d 0 R", font.i, font.N) } f.out(">>") } -- cgit v1.2.1-24-ge1ad