• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #include "dtk_test_ext.h"
16 #include "text/font.h"
17 #include "recording/mem_allocator.h"
18 #include "text/font_mgr.h"
19 #include "text/font_style_set.h"
20 #include "text/rs_xform.h"
21 #include "utils/point.h"
22 #include "utils/rect.h"
23 #include "text/typeface.h"
24 
25 /*
26 测试类:FontStyleSet
27 测试接口:Matchstyle
28 测试内容:对接口入参familynam去string类型的等价值有效值等,构造typeface字体格式,并指定在font上,最终通过drawtextblob接口将text内容绘制在画布上
29 */
30 
31 namespace OHOS {
32 namespace Rosen {
33 
DrawFontStylesetmatchstyle(std::shared_ptr<Drawing::FontMgr> font_mgr,std::string name,TestPlaybackCanvas * playbackCanvas,Drawing::FontStyle::Weight a,Drawing::FontStyle::Width b,Drawing::FontStyle::Slant c)34 void DrawFontStylesetmatchstyle(std::shared_ptr<Drawing::FontMgr> font_mgr,
35     std::string name, TestPlaybackCanvas* playbackCanvas,
36     Drawing::FontStyle::Weight a, Drawing::FontStyle::Width b, Drawing::FontStyle::Slant c)
37 {
38     std::shared_ptr<Drawing::FontStyleSet> fontStyleSet(
39         name.empty()
40             ? font_mgr->CreateStyleSet(0)
41             : font_mgr->MatchFamily(name.c_str())
42     );
43     auto typeface = std::shared_ptr<Drawing::Typeface>(fontStyleSet->MatchStyle({
44     a,
45     b,
46     c}
47     ));
48 
49     auto font = Drawing::Font(typeface, 50.f, 1.0f, 0.f);
50     std::string text1 = "DDGR ddgr 鸿蒙 !@#%¥^&*;:,。";
51     std::string text2 = "-_=+()123`.---~|{}【】,./?、?<>《》";
52     std::string text3 = "\xE2\x99\x88\xE2\x99\x8A\xE2\x99\x88\xE2\x99\x8C\xE2\x99\x8D\xE2\x99\x8D";
53     std::string texts[] = { text1, text2, text3 };
54     int interval = 200;
55     int line = 200;
56     for (auto text :texts) {
57         std::shared_ptr<Drawing::TextBlob> textBlob =
58             Drawing::TextBlob::MakeFromText(text.c_str(), text.size(), font);
59         Drawing::Brush brush;
60         playbackCanvas->AttachBrush(brush);
61         playbackCanvas->DrawTextBlob(textBlob.get(), interval, line);
62         line += interval;
63         playbackCanvas->DetachBrush();
64         Drawing::Pen pen;
65         playbackCanvas->AttachPen(pen);
66         playbackCanvas->DrawTextBlob(textBlob.get(), interval, line);
67         line += interval;
68         playbackCanvas->DetachPen();
69     }
70 }
71 
72 //对应用例 FontStyleSet_MatchStyle_3001
73 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 1)
74 {
75     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
76         playbackCanvas_, Drawing::FontStyle::INVISIBLE_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
77         Drawing::FontStyle::OBLIQUE_SLANT);
78 }
79 
80 //对应用例 FontStyleSet_MatchStyle_3002
81 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 2)
82 {
83     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
84         playbackCanvas_, Drawing::FontStyle::INVISIBLE_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
85         Drawing::FontStyle::UPRIGHT_SLANT);
86 }
87 
88 //对应用例 FontStyleSet_MatchStyle_3003
89 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 3)
90 {
91     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
92         playbackCanvas_, Drawing::FontStyle::INVISIBLE_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
93         Drawing::FontStyle::ITALIC_SLANT);
94 }
95 
96 //对应用例 FontStyleSet_MatchStyle_3004
97 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 4)
98 {
99     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
100         playbackCanvas_, Drawing::FontStyle::INVISIBLE_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
101         Drawing::FontStyle::UPRIGHT_SLANT);
102 }
103 
104 //对应用例 FontStyleSet_MatchStyle_3005
105 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 5)
106 {
107     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
108         playbackCanvas_, Drawing::FontStyle::INVISIBLE_WEIGHT, Drawing::FontStyle::ULTRA_EXPANDED_WIDTH,
109         Drawing::FontStyle::OBLIQUE_SLANT);
110 }
111 
112 //对应用例 FontStyleSet_MatchStyle_3006
113 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 6)
114 {
115     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
116         playbackCanvas_, Drawing::FontStyle::THIN_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
117         Drawing::FontStyle::UPRIGHT_SLANT);
118 }
119 
120 //对应用例 FontStyleSet_MatchStyle_3007
121 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 7)
122 {
123     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
124         playbackCanvas_, Drawing::FontStyle::THIN_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
125         Drawing::FontStyle::ITALIC_SLANT);
126 }
127 
128 //对应用例 FontStyleSet_MatchStyle_3008
129 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 8)
130 {
131     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
132         playbackCanvas_, Drawing::FontStyle::THIN_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
133         Drawing::FontStyle::ITALIC_SLANT);
134 }
135 
136 //对应用例 FontStyleSet_MatchStyle_3009
137 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 9)
138 {
139     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
140         playbackCanvas_, Drawing::FontStyle::THIN_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
141         Drawing::FontStyle::ITALIC_SLANT);
142 }
143 
144 //对应用例 FontStyleSet_MatchStyle_3010
145 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 10)
146 {
147     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
148         playbackCanvas_, Drawing::FontStyle::EXTRA_LIGHT_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
149         Drawing::FontStyle::ITALIC_SLANT);
150 }
151 
152 //对应用例 FontStyleSet_MatchStyle_3011
153 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 11)
154 {
155     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
156         playbackCanvas_, Drawing::FontStyle::EXTRA_LIGHT_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
157         Drawing::FontStyle::OBLIQUE_SLANT);
158 }
159 
160 //对应用例 FontStyleSet_MatchStyle_3012
161 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 12)
162 {
163     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
164         playbackCanvas_, Drawing::FontStyle::EXTRA_LIGHT_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
165         Drawing::FontStyle::OBLIQUE_SLANT);
166 }
167 
168 //对应用例 FontStyleSet_MatchStyle_3013
169 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 13)
170 {
171     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
172         playbackCanvas_, Drawing::FontStyle::EXTRA_LIGHT_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
173         Drawing::FontStyle::ITALIC_SLANT);
174 }
175 
176 //对应用例 FontStyleSet_MatchStyle_3014
177 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 14)
178 {
179     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
180         playbackCanvas_, Drawing::FontStyle::EXTRA_LIGHT_WEIGHT, Drawing::FontStyle::ULTRA_EXPANDED_WIDTH,
181         Drawing::FontStyle::OBLIQUE_SLANT);
182 }
183 
184 //对应用例 FontStyleSet_MatchStyle_3015
185 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 15)
186 {
187     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
188         playbackCanvas_, Drawing::FontStyle::LIGHT_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
189         Drawing::FontStyle::UPRIGHT_SLANT);
190 }
191 
192 //对应用例 FontStyleSet_MatchStyle_3016
193 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 16)
194 {
195     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
196         playbackCanvas_, Drawing::FontStyle::LIGHT_WEIGHT, Drawing::FontStyle::SEMI_EXPANDED_WIDTH,
197         Drawing::FontStyle::OBLIQUE_SLANT);
198 }
199 
200 //对应用例 FontStyleSet_MatchStyle_3017
201 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 17)
202 {
203     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
204         playbackCanvas_, Drawing::FontStyle::LIGHT_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
205         Drawing::FontStyle::ITALIC_SLANT);
206 }
207 
208 //对应用例 FontStyleSet_MatchStyle_3018
209 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 18)
210 {
211     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
212         playbackCanvas_, Drawing::FontStyle::NORMAL_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
213         Drawing::FontStyle::UPRIGHT_SLANT);
214 }
215 
216 //对应用例 FontStyleSet_MatchStyle_3019
217 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 19)
218 {
219     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
220         playbackCanvas_, Drawing::FontStyle::NORMAL_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
221         Drawing::FontStyle::ITALIC_SLANT);
222 }
223 
224 //对应用例 FontStyleSet_MatchStyle_3020
225 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 20)
226 {
227     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
228         playbackCanvas_, Drawing::FontStyle::NORMAL_WEIGHT, Drawing::FontStyle::SEMI_EXPANDED_WIDTH,
229         Drawing::FontStyle::UPRIGHT_SLANT);
230 }
231 
232 //对应用例 FontStyleSet_MatchStyle_3021
233 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 21)
234 {
235     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
236         playbackCanvas_, Drawing::FontStyle::NORMAL_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
237         Drawing::FontStyle::OBLIQUE_SLANT);
238 }
239 
240 //对应用例 FontStyleSet_MatchStyle_3022
241 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 22)
242 {
243     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
244         playbackCanvas_, Drawing::FontStyle::MEDIUM_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
245         Drawing::FontStyle::UPRIGHT_SLANT);
246 }
247 
248 //对应用例 FontStyleSet_MatchStyle_3023
249 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 23)
250 {
251     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
252         playbackCanvas_, Drawing::FontStyle::MEDIUM_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
253         Drawing::FontStyle::UPRIGHT_SLANT);
254 }
255 
256 //对应用例 FontStyleSet_MatchStyle_3024
257 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 24)
258 {
259     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
260         playbackCanvas_, Drawing::FontStyle::MEDIUM_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
261         Drawing::FontStyle::OBLIQUE_SLANT);
262 }
263 
264 //对应用例 FontStyleSet_MatchStyle_3025
265 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 25)
266 {
267     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
268         playbackCanvas_, Drawing::FontStyle::MEDIUM_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
269         Drawing::FontStyle::ITALIC_SLANT);
270 }
271 
272 //对应用例 FontStyleSet_MatchStyle_3026
273 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 26)
274 {
275     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
276         playbackCanvas_, Drawing::FontStyle::SEMI_BOLD_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
277         Drawing::FontStyle::UPRIGHT_SLANT);
278 }
279 
280 //对应用例 FontStyleSet_MatchStyle_3027
281 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 27)
282 {
283     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
284         playbackCanvas_, Drawing::FontStyle::SEMI_BOLD_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
285         Drawing::FontStyle::ITALIC_SLANT);
286 }
287 
288 //对应用例 FontStyleSet_MatchStyle_3028
289 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 28)
290 {
291     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
292         playbackCanvas_, Drawing::FontStyle::SEMI_BOLD_WEIGHT, Drawing::FontStyle::SEMI_CONDENSED_WIDTH,
293         Drawing::FontStyle::ITALIC_SLANT);
294 }
295 
296 //对应用例 FontStyleSet_MatchStyle_3029
297 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 29)
298 {
299     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
300         playbackCanvas_, Drawing::FontStyle::SEMI_BOLD_WEIGHT, Drawing::FontStyle::SEMI_EXPANDED_WIDTH,
301         Drawing::FontStyle::UPRIGHT_SLANT);
302 }
303 
304 //对应用例 FontStyleSet_MatchStyle_3030
305 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 30)
306 {
307     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
308         playbackCanvas_, Drawing::FontStyle::SEMI_BOLD_WEIGHT, Drawing::FontStyle::ULTRA_EXPANDED_WIDTH,
309         Drawing::FontStyle::OBLIQUE_SLANT);
310 }
311 
312 //对应用例 FontStyleSet_MatchStyle_3031
313 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 31)
314 {
315     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
316         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
317         Drawing::FontStyle::UPRIGHT_SLANT);
318 }
319 
320 //对应用例 FontStyleSet_MatchStyle_3032
321 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 32)
322 {
323     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
324         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
325         Drawing::FontStyle::OBLIQUE_SLANT);
326 }
327 
328 //对应用例 FontStyleSet_MatchStyle_3033
329 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 33)
330 {
331     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
332         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::SEMI_EXPANDED_WIDTH,
333         Drawing::FontStyle::UPRIGHT_SLANT);
334 }
335 
336 //对应用例 FontStyleSet_MatchStyle_3034
337 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 34)
338 {
339     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
340         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
341         Drawing::FontStyle::ITALIC_SLANT);
342 }
343 
344 //对应用例 FontStyleSet_MatchStyle_3035
345 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 35)
346 {
347     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
348         playbackCanvas_, Drawing::FontStyle::EXTRA_BOLD_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
349         Drawing::FontStyle::OBLIQUE_SLANT);
350 }
351 
352 //对应用例 FontStyleSet_MatchStyle_3036
353 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 36)
354 {
355     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
356         playbackCanvas_, Drawing::FontStyle::EXTRA_BOLD_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
357         Drawing::FontStyle::ITALIC_SLANT);
358 }
359 
360 //对应用例 FontStyleSet_MatchStyle_3037
361 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 37)
362 {
363     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
364         playbackCanvas_, Drawing::FontStyle::EXTRA_BOLD_WEIGHT, Drawing::FontStyle::SEMI_CONDENSED_WIDTH,
365         Drawing::FontStyle::ITALIC_SLANT);
366 }
367 
368 //对应用例 FontStyleSet_MatchStyle_3038
369 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 38)
370 {
371     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
372         playbackCanvas_, Drawing::FontStyle::EXTRA_BOLD_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
373         Drawing::FontStyle::UPRIGHT_SLANT);
374 }
375 
376 //对应用例 FontStyleSet_MatchStyle_3040
377 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 40)
378 {
379     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
380         playbackCanvas_, Drawing::FontStyle::BLACK_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
381         Drawing::FontStyle::UPRIGHT_SLANT);
382 }
383 
384 //对应用例 FontStyleSet_MatchStyle_3041
385 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 41)
386 {
387     std::shared_ptr<Drawing::FontMgr> font_mgr(Drawing::FontMgr::CreateDefaultFontMgr());
388     std::string name = "HarmonyOS Sans";
389     std::shared_ptr<Drawing::FontStyleSet> fontStyleSet(font_mgr->MatchFamily(name.c_str()));
390     auto typeface = std::shared_ptr<Drawing::Typeface>(fontStyleSet->MatchStyle({
391         Drawing::FontStyle::BLACK_WEIGHT,
392         Drawing::FontStyle::SEMI_CONDENSED_WIDTH,
393         Drawing::FontStyle::OBLIQUE_SLANT}
394     ));
395 
396     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
397         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
398         Drawing::FontStyle::UPRIGHT_SLANT);
399 }
400 
401 //对应用例 FontStyleSet_MatchStyle_3042
402 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 42)
403 {
404     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
405         playbackCanvas_, Drawing::FontStyle::BLACK_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
406         Drawing::FontStyle::OBLIQUE_SLANT);
407 }
408 
409 //对应用例 FontStyleSet_MatchStyle_3043
410 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 43)
411 {
412     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
413         playbackCanvas_, Drawing::FontStyle::BLACK_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
414         Drawing::FontStyle::ITALIC_SLANT);
415 }
416 
417 //对应用例 FontStyleSet_MatchStyle_3044
418 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 44)
419 {
420     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
421         playbackCanvas_, Drawing::FontStyle::EXTRA_BLACK_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
422         Drawing::FontStyle::ITALIC_SLANT);
423 }
424 
425 //对应用例 FontStyleSet_MatchStyle_3045
426 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 45)
427 {
428     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
429         playbackCanvas_, Drawing::FontStyle::EXTRA_BLACK_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
430         Drawing::FontStyle::ITALIC_SLANT);
431 }
432 
433 //对应用例 FontStyleSet_MatchStyle_3046
434 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 46)
435 {
436     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
437         playbackCanvas_, Drawing::FontStyle::EXTRA_BLACK_WEIGHT, Drawing::FontStyle::SEMI_EXPANDED_WIDTH,
438         Drawing::FontStyle::UPRIGHT_SLANT);
439 }
440 
441 //对应用例 FontStyleSet_MatchStyle_3047
442 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 47)
443 {
444     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
445         playbackCanvas_, Drawing::FontStyle::EXTRA_BLACK_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
446         Drawing::FontStyle::OBLIQUE_SLANT);
447 }
448 
449 //对应用例 FontStyleSet_MatchStyle_3048
450 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 48)
451 {
452     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "HarmonyOS Sans",
453         playbackCanvas_, Drawing::FontStyle::EXTRA_BLACK_WEIGHT, Drawing::FontStyle::ULTRA_EXPANDED_WIDTH,
454         Drawing::FontStyle::UPRIGHT_SLANT);
455 }
456 
457 //对应用例 FontStyleSet_MatchStyle_3049
458 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 49)
459 {
460     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "",
461         playbackCanvas_, Drawing::FontStyle::LIGHT_WEIGHT, Drawing::FontStyle::SEMI_CONDENSED_WIDTH,
462         Drawing::FontStyle::UPRIGHT_SLANT);
463 }
464 
465 //对应用例 FontStyleSet_MatchStyle_3050
466 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 50)
467 {
468     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDefaultFontMgr(), "",
469         playbackCanvas_, Drawing::FontStyle::NORMAL_WEIGHT, Drawing::FontStyle::ULTRA_EXPANDED_WIDTH,
470         Drawing::FontStyle::OBLIQUE_SLANT);
471 }
472 
473 //对应用例 FontStyleSet_MatchStyle_3051
474 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 51)
475 {
476     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "HarmonyOS Sans",
477         playbackCanvas_, Drawing::FontStyle::LIGHT_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
478         Drawing::FontStyle::ITALIC_SLANT);
479 }
480 
481 //对应用例 FontStyleSet_MatchStyle_3052
482 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 52)
483 {
484     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "HarmonyOS Sans",
485         playbackCanvas_, Drawing::FontStyle::NORMAL_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
486         Drawing::FontStyle::ITALIC_SLANT);
487 }
488 
489 //对应用例 FontStyleSet_MatchStyle_3053
490 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 53)
491 {
492     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
493         playbackCanvas_, Drawing::FontStyle::INVISIBLE_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
494         Drawing::FontStyle::ITALIC_SLANT);
495 }
496 
497 //对应用例 FontStyleSet_MatchStyle_3054
498 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 54)
499 {
500     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
501         playbackCanvas_, Drawing::FontStyle::INVISIBLE_WEIGHT, Drawing::FontStyle::SEMI_CONDENSED_WIDTH,
502         Drawing::FontStyle::UPRIGHT_SLANT);
503 }
504 
505 //对应用例 FontStyleSet_MatchStyle_3055
506 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 55)
507 {
508     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
509         playbackCanvas_, Drawing::FontStyle::INVISIBLE_WEIGHT, Drawing::FontStyle::SEMI_EXPANDED_WIDTH,
510         Drawing::FontStyle::ITALIC_SLANT);
511 }
512 
513 //对应用例 FontStyleSet_MatchStyle_3056
514 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 56)
515 {
516     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
517         playbackCanvas_, Drawing::FontStyle::INVISIBLE_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
518         Drawing::FontStyle::UPRIGHT_SLANT);
519 }
520 
521 //对应用例 FontStyleSet_MatchStyle_3057
522 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 57)
523 {
524     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
525         playbackCanvas_, Drawing::FontStyle::THIN_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
526         Drawing::FontStyle::ITALIC_SLANT);
527     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
528         playbackCanvas_, Drawing::FontStyle::LIGHT_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
529         Drawing::FontStyle::OBLIQUE_SLANT);
530 }
531 
532 //对应用例 FontStyleSet_MatchStyle_3067
533 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 67)
534 {
535     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
536         playbackCanvas_, Drawing::FontStyle::LIGHT_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
537         Drawing::FontStyle::ITALIC_SLANT);
538 }
539 
540 //对应用例 FontStyleSet_MatchStyle_3068
541 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 68)
542 {
543     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
544         playbackCanvas_, Drawing::FontStyle::LIGHT_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
545         Drawing::FontStyle::UPRIGHT_SLANT);
546 }
547 
548 //对应用例 FontStyleSet_MatchStyle_3069
549 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 69)
550 {
551     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
552         playbackCanvas_, Drawing::FontStyle::LIGHT_WEIGHT, Drawing::FontStyle::ULTRA_EXPANDED_WIDTH,
553         Drawing::FontStyle::OBLIQUE_SLANT);
554 }
555 
556 //对应用例 FontStyleSet_MatchStyle_3070
557 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 70)
558 {
559     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
560         playbackCanvas_, Drawing::FontStyle::NORMAL_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
561         Drawing::FontStyle::UPRIGHT_SLANT);
562 }
563 
564 //对应用例 FontStyleSet_MatchStyle_3071
565 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 71)
566 {
567     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
568         playbackCanvas_, Drawing::FontStyle::NORMAL_WEIGHT, Drawing::FontStyle::SEMI_CONDENSED_WIDTH,
569         Drawing::FontStyle::OBLIQUE_SLANT);
570 }
571 
572 //对应用例 FontStyleSet_MatchStyle_3072
573 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 72)
574 {
575     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
576         playbackCanvas_, Drawing::FontStyle::NORMAL_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
577         Drawing::FontStyle::ITALIC_SLANT);
578 }
579 
580 //对应用例 FontStyleSet_MatchStyle_3073
581 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 73)
582 {
583     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
584         playbackCanvas_, Drawing::FontStyle::MEDIUM_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
585         Drawing::FontStyle::ITALIC_SLANT);
586 }
587 
588 //对应用例 FontStyleSet_MatchStyle_3074
589 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 74)
590 {
591     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
592         playbackCanvas_, Drawing::FontStyle::MEDIUM_WEIGHT, Drawing::FontStyle::SEMI_CONDENSED_WIDTH,
593         Drawing::FontStyle::ITALIC_SLANT);
594 }
595 
596 //对应用例 FontStyleSet_MatchStyle_3075
597 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 75)
598 {
599     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
600         playbackCanvas_, Drawing::FontStyle::MEDIUM_WEIGHT, Drawing::FontStyle::SEMI_EXPANDED_WIDTH,
601         Drawing::FontStyle::OBLIQUE_SLANT);
602 }
603 
604 //对应用例 FontStyleSet_MatchStyle_3076
605 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 76)
606 {
607     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
608         playbackCanvas_, Drawing::FontStyle::MEDIUM_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
609         Drawing::FontStyle::UPRIGHT_SLANT);
610 }
611 
612 //对应用例 FontStyleSet_MatchStyle_3077
613 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 77)
614 {
615     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
616         playbackCanvas_, Drawing::FontStyle::MEDIUM_WEIGHT, Drawing::FontStyle::ULTRA_EXPANDED_WIDTH,
617         Drawing::FontStyle::OBLIQUE_SLANT);
618 }
619 
620 //对应用例 FontStyleSet_MatchStyle_3078
621 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 78)
622 {
623     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
624         playbackCanvas_, Drawing::FontStyle::SEMI_BOLD_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
625         Drawing::FontStyle::UPRIGHT_SLANT);
626 }
627 
628 //对应用例 FontStyleSet_MatchStyle_3079
629 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 79)
630 {
631     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
632         playbackCanvas_, Drawing::FontStyle::SEMI_BOLD_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
633         Drawing::FontStyle::OBLIQUE_SLANT);
634 }
635 
636 //对应用例 FontStyleSet_MatchStyle_3080
637 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 80)
638 {
639     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
640         playbackCanvas_, Drawing::FontStyle::SEMI_BOLD_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
641         Drawing::FontStyle::OBLIQUE_SLANT);
642 }
643 
644 //对应用例 FontStyleSet_MatchStyle_3081
645 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 81)
646 {
647     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
648         playbackCanvas_, Drawing::FontStyle::SEMI_BOLD_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
649         Drawing::FontStyle::ITALIC_SLANT);
650 }
651 
652 //对应用例 FontStyleSet_MatchStyle_3082
653 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 82)
654 {
655     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
656         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
657         Drawing::FontStyle::ITALIC_SLANT);
658 }
659 
660 //对应用例 FontStyleSet_MatchStyle_3083
661 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 83)
662 {
663     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
664         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
665         Drawing::FontStyle::OBLIQUE_SLANT);
666 }
667 
668 //对应用例 FontStyleSet_MatchStyle_3084
669 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 84)
670 {
671     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
672         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::SEMI_CONDENSED_WIDTH,
673         Drawing::FontStyle::ITALIC_SLANT);
674 }
675 
676 //对应用例 FontStyleSet_MatchStyle_3085
677 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 85)
678 {
679     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
680         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
681         Drawing::FontStyle::UPRIGHT_SLANT);
682 }
683 
684 //对应用例 FontStyleSet_MatchStyle_3086
685 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 86)
686 {
687     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
688         playbackCanvas_, Drawing::FontStyle::BOLD_WEIGHT, Drawing::FontStyle::ULTRA_EXPANDED_WIDTH,
689         Drawing::FontStyle::OBLIQUE_SLANT);
690 }
691 
692 //对应用例 FontStyleSet_MatchStyle_3087
693 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 87)
694 {
695     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
696         playbackCanvas_, Drawing::FontStyle::EXTRA_BOLD_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
697         Drawing::FontStyle::UPRIGHT_SLANT);
698 }
699 
700 //对应用例 FontStyleSet_MatchStyle_3088
701 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 88)
702 {
703     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
704         playbackCanvas_, Drawing::FontStyle::EXTRA_BOLD_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
705         Drawing::FontStyle::UPRIGHT_SLANT);
706 }
707 
708 //对应用例 FontStyleSet_MatchStyle_3089
709 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 89)
710 {
711     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
712         playbackCanvas_, Drawing::FontStyle::EXTRA_BOLD_WEIGHT, Drawing::FontStyle::SEMI_EXPANDED_WIDTH,
713         Drawing::FontStyle::OBLIQUE_SLANT);
714 }
715 
716 //对应用例 FontStyleSet_MatchStyle_3090
717 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 90)
718 {
719     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
720         playbackCanvas_, Drawing::FontStyle::EXTRA_BOLD_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
721         Drawing::FontStyle::ITALIC_SLANT);
722 }
723 
724 //对应用例 FontStyleSet_MatchStyle_3091
725 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 91)
726 {
727     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
728         playbackCanvas_, Drawing::FontStyle::BLACK_WEIGHT, Drawing::FontStyle::ULTRA_CONDENSED_WIDTH,
729         Drawing::FontStyle::UPRIGHT_SLANT);
730 }
731 
732 //对应用例 FontStyleSet_MatchStyle_3092
733 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 92)
734 {
735     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
736         playbackCanvas_, Drawing::FontStyle::BLACK_WEIGHT, Drawing::FontStyle::CONDENSED_WIDTH,
737         Drawing::FontStyle::ITALIC_SLANT);
738 }
739 
740 //对应用例 FontStyleSet_MatchStyle_3093
741 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 93)
742 {
743     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
744         playbackCanvas_, Drawing::FontStyle::BLACK_WEIGHT, Drawing::FontStyle::SEMI_EXPANDED_WIDTH,
745         Drawing::FontStyle::UPRIGHT_SLANT);
746 }
747 
748 //对应用例 FontStyleSet_MatchStyle_3094
749 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 94)
750 {
751     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
752         playbackCanvas_, Drawing::FontStyle::BLACK_WEIGHT, Drawing::FontStyle::EXTRA_EXPANDED_WIDTH,
753         Drawing::FontStyle::OBLIQUE_SLANT);
754 }
755 
756 //对应用例 FontStyleSet_MatchStyle_3095
757 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 95)
758 {
759     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
760         playbackCanvas_, Drawing::FontStyle::BLACK_WEIGHT, Drawing::FontStyle::ULTRA_EXPANDED_WIDTH,
761         Drawing::FontStyle::ITALIC_SLANT);
762 }
763 
764 //对应用例 FontStyleSet_MatchStyle_3096
765 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 96)
766 {
767     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
768         playbackCanvas_, Drawing::FontStyle::EXTRA_BLACK_WEIGHT, Drawing::FontStyle::EXTRA_CONDENSED_WIDTH,
769         Drawing::FontStyle::UPRIGHT_SLANT);
770 }
771 
772 //对应用例 FontStyleSet_MatchStyle_3097
773 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 97)
774 {
775     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
776         playbackCanvas_, Drawing::FontStyle::EXTRA_BLACK_WEIGHT, Drawing::FontStyle::SEMI_CONDENSED_WIDTH,
777         Drawing::FontStyle::OBLIQUE_SLANT);
778 }
779 
780 //对应用例 FontStyleSet_MatchStyle_3098
781 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 98)
782 {
783     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
784         playbackCanvas_, Drawing::FontStyle::EXTRA_BLACK_WEIGHT, Drawing::FontStyle::NORMAL_WIDTH,
785         Drawing::FontStyle::OBLIQUE_SLANT);
786 }
787 
788 //对应用例 FontStyleSet_MatchStyle_3099
789 DEF_DTK(fontstyleset_matchstyle, TestLevel::L1, 99)
790 {
791     DrawFontStylesetmatchstyle(Drawing::FontMgr::CreateDynamicFontMgr(), "",
792         playbackCanvas_, Drawing::FontStyle::EXTRA_BLACK_WEIGHT, Drawing::FontStyle::EXPANDED_WIDTH,
793         Drawing::FontStyle::ITALIC_SLANT);
794 }
795 
796 }
797 }