-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconst.go
More file actions
32 lines (26 loc) · 873 Bytes
/
const.go
File metadata and controls
32 lines (26 loc) · 873 Bytes
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
package gopdfwrapper
import "github.com/signintech/gopdf"
// FontStyle wraps the gopdf font style constants into a type.
type FontStyle int
const (
// NormalStyle is the normal font style aka. regular style.
NormalStyle FontStyle = gopdf.Regular
// ItalicStyle represents the italic font style.
ItalicStyle = gopdf.Italic
// BoldStyle represents the bold font style.
BoldStyle = gopdf.Bold
// UnderlineStyle represents the underline font style.
UnderlineStyle = gopdf.Underline
)
// fontFunction is a function which returns a font as bytes and an optional error.
type fontFunction func() ([]byte, error)
// LineStyle wraps the gopdf line styles into a type.
type LineStyle string
const (
// SolidLine is a solid line.
SolidLine LineStyle = ""
// DashedLine is a dashed line.
DashedLine = "dashed"
// DottedLine is a dotted line.
DottedLine = "dotted"
)