-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathfontconfig_struct.go
More file actions
117 lines (99 loc) · 2.85 KB
/
fontconfig_struct.go
File metadata and controls
117 lines (99 loc) · 2.85 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
package main
import "encoding/xml"
var header = []byte("<?xml version='1.0'?>\n<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>\n")
type Fontconfig struct {
XMLName xml.Name `xml:"fontconfig"`
Text string `xml:",chardata"`
Dir []xDir `xml:"dir"`
Fontpattern []string `xml:"fontpattern"`
Cachedir []string `xml:"cachedir"`
Selectfont *xSelectfont `xml:"selectfont"`
Match []xMatch `xml:"match"`
Include string `xml:"include,omitempty"`
}
type xSelectfont struct {
Text string `xml:",chardata"`
Rejectfont xRejectfont `xml:"rejectfont"`
}
type xRejectfont struct {
Text string `xml:",chardata"`
Pattern xPattern `xml:"pattern"`
}
type xPattern struct {
Text string `xml:",chardata"`
Patelt *xPatelt `xml:"patelt"`
}
type xPatelt struct {
Text string `xml:",chardata"`
Name string `xml:"name,attr"`
String string `xml:"string"`
}
type xDir struct {
Text string `xml:",chardata"`
Prefix string `xml:"prefix,attr,omitempty"`
}
type xMatch struct {
Text string `xml:",chardata"`
Target string `xml:"target,attr,omitempty"`
Test []xTest `xml:"test"`
Edit []xEdit `xml:"edit"`
}
type xTest struct {
Text string `xml:",chardata"`
Qual string `xml:"qual,attr,omitempty"`
Name string `xml:"name,attr,omitempty"`
Target string `xml:"target,attr,omitempty"`
Compare string `xml:"compare,attr,omitempty"`
String string `xml:"string"`
}
type xEdit struct {
Text string `xml:",chardata"`
Name string `xml:"name,attr"`
Mode string `xml:"mode,attr"`
Binding string `xml:"binding,attr,omitempty"`
Const string `xml:"const,omitempty"`
String string `xml:"string,omitempty"`
Int int `xml:"int,omitempty"`
If *xIf `xml:"if"`
Times *xTimes `xml:"times"`
Minus *xMinus `xml:"minus"`
Bool string `xml:"bool,omitempty"`
Double string `xml:"double,omitempty"`
}
type xTimes struct {
Text string `xml:",chardata"`
Name string `xml:"name,omitempty"`
Double string `xml:"double,omitempty"`
}
type xMinus struct {
Text string `xml:",chardata"`
Name string `xml:"name"`
Charset xChatset `xml:"charset"`
}
type xChatset struct {
Text string `xml:",chardata"`
Int []string `xml:"int"`
}
type xIf struct {
Text string `xml:",chardata"`
Contains *xContains `xml:"contains,omitempty"`
Int string `xml:"int,omitempty"`
Name string `xml:"name,omitempty"`
Or *xOr `xml:"or,omitempty"`
Times []xTimes `xml:"times,omitempty"`
}
type xContains struct {
Text string `xml:",chardata"`
Name string `xml:"name"`
String string `xml:"string"`
}
type xOr struct {
Text string `xml:",chardata"`
Contains xContains `xml:"contains"`
LessEq xLessEq `xml:"less_eq"`
}
type xLessEq struct {
Text string `xml:",chardata"`
Name string `xml:"name"`
Int string `xml:"int"`
}