-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
49 lines (43 loc) · 1.11 KB
/
config.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
41
42
43
44
45
46
47
48
49
package ansitoimage
// Config represents converter configuration.
type Config struct {
// Text settings.
CharWidth int
LineHeight int
LineShift int
LineBreak string
// Page settings.
PageCols int
PageRows int
Padding int
// Font settings.
MonoRegularFontBytes []byte
MonoRegularFontPoints float64
MonoBoldFontBytes []byte
MonoBoldFontPoints float64
MonoObliqueFontBytes []byte
MonoObliqueFontPoints float64
MonoObliqueBoldFontBytes []byte
MonoObliqueBoldFontPoints float64
}
// DefaultConfig represents default configuration for converter.
var DefaultConfig = Config{
// Text settings.
CharWidth: 10,
LineHeight: 19,
LineShift: 4,
LineBreak: "\n",
// Page settings.
PageCols: 80,
PageRows: 24,
Padding: 10,
// Font settings.
MonoRegularFontBytes: monoRegularFontData,
MonoRegularFontPoints: 16.0,
MonoBoldFontBytes: monoBoldFontData,
MonoBoldFontPoints: 16.0,
MonoObliqueFontBytes: monoObliqueFontData,
MonoObliqueFontPoints: 16.0,
MonoObliqueBoldFontBytes: monoBoldObliqueFontData,
MonoObliqueBoldFontPoints: 16.0,
}