20d7df35f9dfc878538a8503fd0eb0a4a5e8c61d.svn-base
2.62 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.common.supcan.common.fonts;
import com.thinkgem.jeesite.common.supcan.annotation.common.fonts.SupFont;
import com.thinkgem.jeesite.common.utils.ObjectUtils;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
/**
* 硕正TreeList Properties
* @author WangZhen
* @version 2013-11-04
*/
@XStreamAlias("Font")
public class Font {
/**
* 字体名称 微软雅黑 宋体
*/
@XStreamAsAttribute
private String faceName;
/**
* 字符集 134
*/
@XStreamAsAttribute
private String charSet;
/**
* Height(或size)是字体的尺寸,单位是字体的逻辑单位,通常采用小于0的数字,
* 如果大于0,则高度不包含文字的内部行距(internal-leading)。
* 常用的尺寸是-8, -9, -10, -11, -12, -14, -16, -18, -20, -22, -24, -26, -28, -36, -48, -72;
*/
@XStreamAsAttribute
private String height;
/**
* 字体加粗 weight=400/700 对应 非粗体/粗体;
*/
@XStreamAsAttribute
private String weight;
/**
* 字体宽度
*/
@XStreamAsAttribute
private String width;
/**
* 字体斜体
*/
@XStreamAsAttribute
private String italic;
/**
* 字体下划线
*/
@XStreamAsAttribute
private String underline;
public Font() {
}
public Font(SupFont supFont) {
this();
ObjectUtils.annotationToObject(supFont, this);
}
public Font(String faceName) {
this();
this.faceName = faceName;
}
public Font(String faceName, String charSet, String height) {
this(faceName);
this.charSet = charSet;
this.height = height;
}
public Font(String faceName, String charSet, String height, String weight) {
this(faceName, charSet, height);
this.weight = weight;
}
public String getFaceName() {
return faceName;
}
public void setFaceName(String faceName) {
this.faceName = faceName;
}
public String getCharSet() {
return charSet;
}
public void setCharSet(String charSet) {
this.charSet = charSet;
}
public String getHeight() {
return height;
}
public void setHeight(String height) {
this.height = height;
}
public String getWeight() {
return weight;
}
public void setWeight(String weight) {
this.weight = weight;
}
public String getWidth() {
return width;
}
public void setWidth(String width) {
this.width = width;
}
public String getItalic() {
return italic;
}
public void setItalic(String italic) {
this.italic = italic;
}
public String getUnderline() {
return underline;
}
public void setUnderline(String underline) {
this.underline = underline;
}
}