diff options
author | d1ngd0 <paul.david.montag@gmail.com> | 2018-12-17 16:26:42 -0600 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2018-12-17 17:26:42 -0500 |
commit | 55a774389a811b454a9ee3dfa78bd28fc5d0ab18 (patch) | |
tree | ec312ff7e022151f5f0b97bfcbcaf452e5ba62f5 /template.go | |
parent | 580543bbbf6ba6a65b8aa9cdbf7d15069d651cb5 (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 'template.go')
-rw-r--r-- | template.go | 2 |
1 files changed, 1 insertions, 1 deletions
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(">>") } |