-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.go
40 lines (38 loc) · 860 Bytes
/
default.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package gompdf
import (
"github.com/mazzegi/gompdf/style"
)
var DefaultStyle = style.Styles{
Font: style.Font{
Family: "Arial",
PointSize: 12,
Style: style.FontStyleNormal,
Weight: style.FontWeightNormal,
Decoration: style.FontDecorationNormal,
},
Box: style.Box{
Border: style.Border{Left: 0, Top: 0, Right: 0, Bottom: 0},
Padding: style.Padding{Left: 0, Top: 0, Right: 0, Bottom: 0},
Margin: style.Margin{Left: 0, Top: 0, Right: 0, Bottom: 0},
},
Dimension: style.Dimension{
Width: -1,
Height: -1,
LineHeight: 1.5,
OffsetX: 0,
OffsetY: 0,
},
Table: style.Table{
ColumnWidth: -1,
ColumnSpan: 1,
},
Align: style.Align{
HAlign: style.HAlignLeft,
VAlign: style.VAlignTop,
},
Color: style.Color{
Foreground: style.Black,
Text: style.Black,
Background: style.White,
},
}