Lines Matching refs:fontFamilies
25 int CountFallbacks(SkTDArray<FontFamily*> fontFamilies) { in CountFallbacks() argument
27 for (int i = 0; i < fontFamilies.count(); i++) { in CountFallbacks()
28 if (fontFamilies[i]->fIsFallbackFont) { in CountFallbacks()
45 static void ValidateLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* firstExpectedFile, in ValidateLoadedFonts() argument
47 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5); in ValidateLoadedFonts()
48 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif")); in ValidateLoadedFonts()
50 !strcmp(fontFamilies[0]->fFonts[0].fFileName.c_str(), firstExpectedFile)); in ValidateLoadedFonts()
51 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont); in ValidateLoadedFonts()
54 for (const auto& fontFamily : fontFamilies) { in ValidateLoadedFonts()
67 for (int i = 0; i < fontFamilies.count(); ++i) { in ValidateLoadedFonts()
68 FontFamily& family = *fontFamilies[i]; in ValidateLoadedFonts()
94 static void DumpLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* label) { in DumpLoadedFonts() argument
100 for (int i = 0; i < fontFamilies.count(); ++i) { in DumpLoadedFonts()
102 switch(fontFamilies[i]->fVariant) { in DumpLoadedFonts()
107 SkDebugf(" basePath %s\n", fontFamilies[i]->fBasePath.c_str()); in DumpLoadedFonts()
108 if (!fontFamilies[i]->fLanguages.empty()) { in DumpLoadedFonts()
110 for (const auto& lang : fontFamilies[i]->fLanguages) { in DumpLoadedFonts()
115 for (int j = 0; j < fontFamilies[i]->fNames.count(); ++j) { in DumpLoadedFonts()
116 SkDebugf(" name %s\n", fontFamilies[i]->fNames[j].c_str()); in DumpLoadedFonts()
118 DumpFiles(*fontFamilies[i]); in DumpLoadedFonts()
119 fontFamilies[i]->fallbackFamilies.foreach( in DumpLoadedFonts()