density
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user