This commit is contained in:
2021-03-03 09:31:28 +01:00
parent 7272aa1ddf
commit 7e9370d183
2 changed files with 7 additions and 7 deletions

View File

@@ -26,10 +26,10 @@ import (
*/
// newTpl creates a template, copying graphics settings from a template if one is given
func newTpl(corner PointType, size SizeType, orientationStr, unitStr, fontDirStr string, fn func(*Tpl), copyFrom *Fpdf) Template {
func newTpl(corner PointType, size SizeType, orientationStr, unitStr, fontDirStr string, density float64, fn func(*Tpl), copyFrom *Fpdf) Template {
sizeStr := ""
fpdf := fpdfNew(orientationStr, unitStr, sizeStr, fontDirStr, size)
fpdf := fpdfNew(orientationStr, unitStr, sizeStr, fontDirStr, size, density)
tpl := Tpl{*fpdf}
if copyFrom != nil {
tpl.loadParamsFromFpdf(copyFrom)