Lines Matching refs:fontFamilies

18 int CountFallbacks(SkTDArray<FontFamily*> fontFamilies) {  in CountFallbacks()  argument
20 for (int i = 0; i < fontFamilies.count(); i++) { in CountFallbacks()
21 if (fontFamilies[i]->fIsFallbackFont) { in CountFallbacks()
38 void ValidateLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* firstExpectedFile, in ValidateLoadedFonts() argument
40 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5); in ValidateLoadedFonts()
41 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif")); in ValidateLoadedFonts()
43 !strcmp(fontFamilies[0]->fFonts[0].fFileName.c_str(), firstExpectedFile)); in ValidateLoadedFonts()
44 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont); in ValidateLoadedFonts()
47 for (int i = 0; i < fontFamilies.count(); ++i) { in ValidateLoadedFonts()
48 const SkString& lang = fontFamilies[i]->fLanguage.getTag(); in ValidateLoadedFonts()
58 for (int i = 0; i < fontFamilies.count(); ++i) { in ValidateLoadedFonts()
59 FontFamily& family = *fontFamilies[i]; in ValidateLoadedFonts()
69 void DumpLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* label) { in DumpLoadedFonts() argument
75 for (int i = 0; i < fontFamilies.count(); ++i) { in DumpLoadedFonts()
77 switch(fontFamilies[i]->fVariant) { in DumpLoadedFonts()
82 SkDebugf(" basePath %s\n", fontFamilies[i]->fBasePath.c_str()); in DumpLoadedFonts()
83 if (!fontFamilies[i]->fLanguage.getTag().isEmpty()) { in DumpLoadedFonts()
84 SkDebugf(" language %s\n", fontFamilies[i]->fLanguage.getTag().c_str()); in DumpLoadedFonts()
86 for (int j = 0; j < fontFamilies[i]->fNames.count(); ++j) { in DumpLoadedFonts()
87 SkDebugf(" name %s\n", fontFamilies[i]->fNames[j].c_str()); in DumpLoadedFonts()
89 for (int j = 0; j < fontFamilies[i]->fFonts.count(); ++j) { in DumpLoadedFonts()
90 const FontFileInfo& ffi = fontFamilies[i]->fFonts[j]; in DumpLoadedFonts()