• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OH_Drawing_FontDescriptor
2
3
4## Overview
5
6The **OH_Drawing_FontDescriptor** struct describes the detailed information about a system font.
7
8**Since**: 12
9
10**Related module**: [Drawing](_drawing.md)
11
12**Header file**: [drawing_text_typography.h](drawing__text__typography_8h.md)
13
14## Summary
15
16
17### Member Variables
18
19| Name| Description|
20| -------- | -------- |
21| char \* [path](#path) | File path of the system font.|
22| char \* [postScriptName](#postscriptname) | PostScript name that uniquely identifies the system font.|
23| char \* [fullName](#fullname) | Full name of the system font.|
24| char \* [fontFamily](#fontfamily) | Family of the system font.|
25| char \* [fontSubfamily](#fontsubfamily) | Subfamily of the system font.|
26| int [weight](#weight) | Weight of the system font.|
27| int [width](#width) | Width of the system font.|
28| int [italic](#italic) | Slope of the system font.|
29| bool [monoSpace](#monospace) | Whether the system font is monospaced. The value **true** means that the system font is monospaced, and **false** means the opposite.|
30| bool [symbolic](#symbolic) | Whether the system font supports symbols. The value **true** means that the system font supports symbols, and **false** means the opposite.|
31
32
33## Member Variable Description
34
35
36### fontFamily
37
38```
39char* OH_Drawing_FontDescriptor::fontFamily
40```
41
42**Description**
43
44Family of the system font.
45
46
47### fontSubfamily
48
49```
50char* OH_Drawing_FontDescriptor::fontSubfamily
51```
52
53**Description**
54
55Subfamily of the system font.
56
57
58### fullName
59
60```
61char* OH_Drawing_FontDescriptor::fullName
62```
63
64**Description**
65
66Full name of the system font.
67
68
69### italic
70
71```
72int OH_Drawing_FontDescriptor::italic
73```
74
75**Description**
76
77Slope of the system font.
78
79
80### monoSpace
81
82```
83bool OH_Drawing_FontDescriptor::monoSpace
84```
85
86**Description**
87
88Whether the system font is monospaced. The value **true** means that the system font is monospaced, and **false** means the opposite.
89
90
91### path
92
93```
94char* OH_Drawing_FontDescriptor::path
95```
96
97**Description**
98
99File path of the system font.
100
101
102### postScriptName
103
104```
105char* OH_Drawing_FontDescriptor::postScriptName
106```
107
108**Description**
109
110PostScript name that uniquely identifies the system font.
111
112
113### symbolic
114
115```
116bool OH_Drawing_FontDescriptor::symbolic
117```
118
119**Description**
120
121Whether the system font supports symbols. The value **true** means that the system font supports symbols, and **false** means the opposite.
122
123
124### weight
125
126```
127int OH_Drawing_FontDescriptor::weight
128```
129
130**Description**
131
132Weight of the system font.
133
134
135### width
136
137```
138int OH_Drawing_FontDescriptor::width
139```
140
141**Description**
142
143Width of the system font.
144