Flutter Engine
The Flutter Engine
Functions
FontationsFtCompTest.cpp File Reference
#include "include/core/SkFont.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkPath.h"
#include "include/core/SkStream.h"
#include "include/core/SkTextBlob.h"
#include "include/core/SkTypeface.h"
#include "include/ports/SkTypeface_fontations.h"
#include "modules/skshaper/include/SkShaper.h"
#include "src/ports/SkTypeface_FreeType.h"
#include "tests/Test.h"
#include "tools/TestFontDataProvider.h"
#include <memory>

Go to the source code of this file.

Functions

 DEF_TEST (Fontations_NotoSans, reporter)
 
 DEF_TEST (Fontations_NotoSans_Deva, reporter)
 
 DEF_TEST (Fontations_NotoSans_ar_Arab, reporter)
 
 DEF_TEST (Fontations_NotoSans_Beng, reporter)
 
 DEF_TEST (Fontations_NotoSans_Jpan, reporter)
 
 DEF_TEST (Fontations_NotoSans_Thai, reporter)
 
 DEF_TEST (Fontations_NotoSans_Hans, reporter)
 
 DEF_TEST (Fontations_NotoSans_Hant, reporter)
 
 DEF_TEST (Fontations_NotoSans_Kore, reporter)
 
 DEF_TEST (Fontations_NotoSans_Taml, reporter)
 
 DEF_TEST (Fontations_NotoSans_Newa, reporter)
 
 DEF_TEST (Fontations_NotoSans_Knda, reporter)
 
 DEF_TEST (Fontations_NotoSans_Tglg, reporter)
 
 DEF_TEST (Fontations_NotoSans_Telu, reporter)
 
 DEF_TEST (Fontations_NotoSans_Gujr, reporter)
 
 DEF_TEST (Fontations_NotoSans_Geor, reporter)
 
 DEF_TEST (Fontations_NotoSans_Mlym, reporter)
 
 DEF_TEST (Fontations_NotoSans_Khmr, reporter)
 
 DEF_TEST (Fontations_NotoSans_Sinh, reporter)
 
 DEF_TEST (Fontations_NotoSans_Mymr, reporter)
 
 DEF_TEST (Fontations_NotoSans_Java, reporter)
 
 DEF_TEST (Fontations_NotoSans_Mong, reporter)
 
 DEF_TEST (Fontations_NotoSans_Armn, reporter)
 
 DEF_TEST (Fontations_NotoSans_Elba, reporter)
 
 DEF_TEST (Fontations_NotoSans_Vith, reporter)
 
 DEF_TEST (Fontations_NotoSans_Guru, reporter)
 

Function Documentation

◆ DEF_TEST() [1/26]

DEF_TEST ( Fontations_NotoSans  ,
reporter   
)

Definition at line 141 of file FontationsFtCompTest.cpp.

141 {
142 FontationsFtComparison("Noto Sans",
143 "en_Latn|es_Latn|pt_Latn|id_Latn|ru_Cyrl|fr_Latn|tr_Latn|vi_Latn|de_"
144 "Latn|it_Latn|pl_Latn|nl_Latn|uk_Cyrl|gl_Latn|ro_Latn|cs_Latn|hu_Latn|"
145 "el_Grek|se_Latn|da_Latn|bg_Latn|sk_Latn|fi_Latn|bs_Latn|ca_Latn|no_"
146 "Latn|sr_Latn|sr_Cyrl|lt_Latn|hr_Latn|sl_Latn|uz_Latn|uz_Cyrl|lv_Latn|"
147 "et_Latn|az_Latn|az_Cyrl|la_Latn|tg_Latn|tg_Cyrl|sw_Latn|mn_Cyrl|kk_"
148 "Latn|kk_Cyrl|sq_Latn|af_Latn|ha_Latn|ky_Cyrl")
149 .assertAllPathsEqual(reporter);
150}
reporter
Definition: FontMgrTest.cpp:39

◆ DEF_TEST() [2/26]

DEF_TEST ( Fontations_NotoSans_ar_Arab  ,
reporter   
)

Definition at line 156 of file FontationsFtCompTest.cpp.

156 {
157 FontationsFtComparison("Noto Sans Arabic", "ar_Arab|uz_Arab|kk_Arab|ky_Arab")
158 .assertAllPathsEqual(reporter);
159}

◆ DEF_TEST() [3/26]

DEF_TEST ( Fontations_NotoSans_Armn  ,
reporter   
)

Definition at line 237 of file FontationsFtCompTest.cpp.

237 {
238 FontationsFtComparison("Noto Sans Armenian", "hy_Armn").assertAllPathsEqual(reporter);
239}

◆ DEF_TEST() [4/26]

DEF_TEST ( Fontations_NotoSans_Beng  ,
reporter   
)

Definition at line 161 of file FontationsFtCompTest.cpp.

161 {
162 FontationsFtComparison("Noto Sans Bengali", "bn_Beng").assertAllPathsEqual(reporter);
163}

◆ DEF_TEST() [5/26]

DEF_TEST ( Fontations_NotoSans_Deva  ,
reporter   
)

Definition at line 152 of file FontationsFtCompTest.cpp.

152 {
153 FontationsFtComparison("Noto Sans Devanagari", "hi_Deva|mr_Deva").assertAllPathsEqual(reporter);
154}

◆ DEF_TEST() [6/26]

DEF_TEST ( Fontations_NotoSans_Elba  ,
reporter   
)

Definition at line 241 of file FontationsFtCompTest.cpp.

241 {
242 FontationsFtComparison("Noto Sans Elbasan", "sq_Elba").assertAllPathsEqual(reporter);
243}

◆ DEF_TEST() [7/26]

DEF_TEST ( Fontations_NotoSans_Geor  ,
reporter   
)

Definition at line 209 of file FontationsFtCompTest.cpp.

209 {
210 FontationsFtComparison("Noto Sans Georgian", "ka_Geor").assertAllPathsEqual(reporter);
211}

◆ DEF_TEST() [8/26]

DEF_TEST ( Fontations_NotoSans_Gujr  ,
reporter   
)

Definition at line 205 of file FontationsFtCompTest.cpp.

205 {
206 FontationsFtComparison("Noto Sans Gujarati", "gu_Gujr").assertAllPathsEqual(reporter);
207}

◆ DEF_TEST() [9/26]

DEF_TEST ( Fontations_NotoSans_Guru  ,
reporter   
)

Definition at line 249 of file FontationsFtCompTest.cpp.

249 {
250 FontationsFtComparison("Noto Sans Gurmukhi", "pa_Guru").assertAllPathsEqual(reporter);
251}

◆ DEF_TEST() [10/26]

DEF_TEST ( Fontations_NotoSans_Hans  ,
reporter   
)

Definition at line 173 of file FontationsFtCompTest.cpp.

173 {
174 FontationsFtComparison("Noto Sans SC", "zh_Hans").assertAllPathsEqual(reporter);
175}

◆ DEF_TEST() [11/26]

DEF_TEST ( Fontations_NotoSans_Hant  ,
reporter   
)

Definition at line 177 of file FontationsFtCompTest.cpp.

177 {
178 FontationsFtComparison("Noto Sans TC", "zh_Hant").assertAllPathsEqual(reporter);
179}

◆ DEF_TEST() [12/26]

DEF_TEST ( Fontations_NotoSans_Java  ,
reporter   
)

Definition at line 229 of file FontationsFtCompTest.cpp.

229 {
230 FontationsFtComparison("Noto Sans Javanese", "jv_Java").assertAllPathsEqual(reporter);
231}

◆ DEF_TEST() [13/26]

DEF_TEST ( Fontations_NotoSans_Jpan  ,
reporter   
)

Definition at line 165 of file FontationsFtCompTest.cpp.

165 {
166 FontationsFtComparison("Noto Sans JP", "ja_Jpan").assertAllPathsEqual(reporter);
167}

◆ DEF_TEST() [14/26]

DEF_TEST ( Fontations_NotoSans_Khmr  ,
reporter   
)

Definition at line 217 of file FontationsFtCompTest.cpp.

217 {
218 FontationsFtComparison("Noto Sans Khmer", "km_Khmr").assertAllPathsEqual(reporter);
219}

◆ DEF_TEST() [15/26]

DEF_TEST ( Fontations_NotoSans_Knda  ,
reporter   
)

Definition at line 193 of file FontationsFtCompTest.cpp.

193 {
194 FontationsFtComparison("Noto Sans Kannada", "kn_Knda").assertAllPathsEqual(reporter);
195}

◆ DEF_TEST() [16/26]

DEF_TEST ( Fontations_NotoSans_Kore  ,
reporter   
)

Definition at line 181 of file FontationsFtCompTest.cpp.

181 {
182 FontationsFtComparison("Noto Sans KR", "ko_Kore").assertAllPathsEqual(reporter);
183}

◆ DEF_TEST() [17/26]

DEF_TEST ( Fontations_NotoSans_Mlym  ,
reporter   
)

Definition at line 213 of file FontationsFtCompTest.cpp.

213 {
214 FontationsFtComparison("Noto Sans Malayalam", "ml_Mlym").assertAllPathsEqual(reporter);
215}

◆ DEF_TEST() [18/26]

DEF_TEST ( Fontations_NotoSans_Mong  ,
reporter   
)

Definition at line 233 of file FontationsFtCompTest.cpp.

233 {
234 FontationsFtComparison("Noto Sans Mongolian", "mn_Mong").assertAllPathsEqual(reporter);
235}

◆ DEF_TEST() [19/26]

DEF_TEST ( Fontations_NotoSans_Mymr  ,
reporter   
)

Definition at line 225 of file FontationsFtCompTest.cpp.

225 {
226 FontationsFtComparison("Noto Sans Myanmar", "my_Mymr").assertAllPathsEqual(reporter);
227}

◆ DEF_TEST() [20/26]

DEF_TEST ( Fontations_NotoSans_Newa  ,
reporter   
)

Definition at line 189 of file FontationsFtCompTest.cpp.

189 {
190 FontationsFtComparison("Noto Sans Newa", "new_Newa").assertAllPathsEqual(reporter);
191}

◆ DEF_TEST() [21/26]

DEF_TEST ( Fontations_NotoSans_Sinh  ,
reporter   
)

Definition at line 221 of file FontationsFtCompTest.cpp.

221 {
222 FontationsFtComparison("Noto Sans Sinhala", "si_Sinh").assertAllPathsEqual(reporter);
223}

◆ DEF_TEST() [22/26]

DEF_TEST ( Fontations_NotoSans_Taml  ,
reporter   
)

Definition at line 185 of file FontationsFtCompTest.cpp.

185 {
186 FontationsFtComparison("Noto Sans Tamil", "ta_Taml").assertAllPathsEqual(reporter);
187}

◆ DEF_TEST() [23/26]

DEF_TEST ( Fontations_NotoSans_Telu  ,
reporter   
)

Definition at line 201 of file FontationsFtCompTest.cpp.

201 {
202 FontationsFtComparison("Noto Sans Telugu", "te_Telu").assertAllPathsEqual(reporter);
203}

◆ DEF_TEST() [24/26]

DEF_TEST ( Fontations_NotoSans_Tglg  ,
reporter   
)

Definition at line 197 of file FontationsFtCompTest.cpp.

197 {
198 FontationsFtComparison("Noto Sans Tagalog", "fil_Tglg").assertAllPathsEqual(reporter);
199}

◆ DEF_TEST() [25/26]

DEF_TEST ( Fontations_NotoSans_Thai  ,
reporter   
)

Definition at line 169 of file FontationsFtCompTest.cpp.

169 {
170 FontationsFtComparison("Noto Sans Thai", "th_Thai").assertAllPathsEqual(reporter);
171}

◆ DEF_TEST() [26/26]

DEF_TEST ( Fontations_NotoSans_Vith  ,
reporter   
)

Definition at line 245 of file FontationsFtCompTest.cpp.

245 {
246 FontationsFtComparison("Noto Sans Vithkuqi", "sq_Vith").assertAllPathsEqual(reporter);
247}