Lines Matching refs:fontFamilies
26 int CountFallbacks(SkTDArray<FontFamily*> fontFamilies) { in CountFallbacks() argument
28 for (int i = 0; i < fontFamilies.count(); i++) { in CountFallbacks()
29 if (fontFamilies[i]->fIsFallbackFont) { in CountFallbacks()
46 static void ValidateLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* firstExpectedFile, in ValidateLoadedFonts() argument
48 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5); in ValidateLoadedFonts()
49 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif")); in ValidateLoadedFonts()
51 !strcmp(fontFamilies[0]->fFonts[0].fFileName.c_str(), firstExpectedFile)); in ValidateLoadedFonts()
52 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont); in ValidateLoadedFonts()
55 for (const auto& fontFamily : fontFamilies) { in ValidateLoadedFonts()
68 for (int i = 0; i < fontFamilies.count(); ++i) { in ValidateLoadedFonts()
69 FontFamily& family = *fontFamilies[i]; in ValidateLoadedFonts()
95 static void DumpLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* label) { in DumpLoadedFonts() argument
101 for (int i = 0; i < fontFamilies.count(); ++i) { in DumpLoadedFonts()
103 switch(fontFamilies[i]->fVariant) { in DumpLoadedFonts()
108 SkDebugf(" basePath %s\n", fontFamilies[i]->fBasePath.c_str()); in DumpLoadedFonts()
109 if (!fontFamilies[i]->fLanguages.empty()) { in DumpLoadedFonts()
111 for (const auto& lang : fontFamilies[i]->fLanguages) { in DumpLoadedFonts()
116 for (int j = 0; j < fontFamilies[i]->fNames.count(); ++j) { in DumpLoadedFonts()
117 SkDebugf(" name %s\n", fontFamilies[i]->fNames[j].c_str()); in DumpLoadedFonts()
119 DumpFiles(*fontFamilies[i]); in DumpLoadedFonts()
120 for (const auto& [unused, fallbackFamily] : fontFamilies[i]->fallbackFamilies) { in DumpLoadedFonts()