• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OH_Drawing_FontDescriptor
2
3
4## 概述
5
6描述系统字体详细信息的结构体。
7
8**起始版本:** 12
9
10**相关模块:**[Drawing](_drawing.md)
11
12**所在头文件:**[drawing_text_typography.h](drawing__text__typography_8h.md)
13
14## 汇总
15
16
17### 成员变量
18
19| 名称 | 描述 |
20| -------- | -------- |
21| char \* [path](#path) | 系统字体的文件路径。 |
22| char \* [postScriptName](#postscriptname) | 唯一标识字体的名称。 |
23| char \* [fullName](#fullname) | 系统字体的名称。 |
24| char \* [fontFamily](#fontfamily) | 系统字体的字体家族。 |
25| char \* [fontSubfamily](#fontsubfamily) | 系统字体的子字体家族。 |
26| int [weight](#weight) | 系统字体的粗细程度。 |
27| int [width](#width) | 系统字体的宽窄风格属性。 |
28| int [italic](#italic) | 系统字体倾斜度。 |
29| bool [monoSpace](#monospace) | 系统字体是否紧凑,true表示字体紧凑,false表示字体非紧凑。 |
30| bool [symbolic](#symbolic) | 系统字体是否支持符号字体,true表示支持符号字体,false表示不支持符号字体。 |
31
32
33## 结构体成员变量说明
34
35
36### fontFamily
37
38```
39char* OH_Drawing_FontDescriptor::fontFamily
40```
41
42**描述**
43
44系统字体的字体家族
45
46
47### fontSubfamily
48
49```
50char* OH_Drawing_FontDescriptor::fontSubfamily
51```
52
53**描述**
54
55系统字体的子字体家族
56
57
58### fullName
59
60```
61char* OH_Drawing_FontDescriptor::fullName
62```
63
64**描述**
65
66系统字体的名称
67
68
69### italic
70
71```
72int OH_Drawing_FontDescriptor::italic
73```
74
75**描述**
76
77系统字体倾斜度
78
79
80### monoSpace
81
82```
83bool OH_Drawing_FontDescriptor::monoSpace
84```
85
86**描述**
87
88系统字体是否紧凑,true表示字体紧凑,false表示字体非紧凑
89
90
91### path
92
93```
94char* OH_Drawing_FontDescriptor::path
95```
96
97**描述**
98
99系统字体的文件路径
100
101
102### postScriptName
103
104```
105char* OH_Drawing_FontDescriptor::postScriptName
106```
107
108**描述**
109
110唯一标识字体的名称
111
112
113### symbolic
114
115```
116bool OH_Drawing_FontDescriptor::symbolic
117```
118
119**描述**
120
121系统字体是否支持符号字体,true表示支持符号字体,false表示不支持符号字体
122
123
124### weight
125
126```
127int OH_Drawing_FontDescriptor::weight
128```
129
130**描述**
131
132系统字体的粗细程度
133
134
135### width
136
137```
138int OH_Drawing_FontDescriptor::width
139```
140
141**描述**
142
143系统字体的宽窄风格属性
144