Searched refs:fontFamilies (Results 1 – 3 of 3) sorted by relevance
/external/skia/tests/ |
D | FontMgrAndroidParserTest.cpp | 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() [all …]
|
/external/skia/src/ports/ |
D | SkFontMgr_android_parser.cpp | 656 static int append_system_font_families(SkTDArray<FontFamily*>& fontFamilies, in append_system_font_families() argument 659 int initialCount = fontFamilies.count(); in append_system_font_families() 660 int version = parse_config_file(LMP_SYSTEM_FONTS_FILE, fontFamilies, basePath, false); in append_system_font_families() 661 if (version < 0 || fontFamilies.count() == initialCount) { in append_system_font_families() 662 version = parse_config_file(OLD_SYSTEM_FONTS_FILE, fontFamilies, basePath, false); in append_system_font_families() 758 void SkFontMgr_Android_Parser::GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies) { in GetSystemFontFamilies() argument 763 if (append_system_font_families(fontFamilies, basePath) >= 21) { in GetSystemFontFamilies() 771 fontFamilies.append(fallbackFonts.count(), fallbackFonts.begin()); in GetSystemFontFamilies() 774 void SkFontMgr_Android_Parser::GetCustomFontFamilies(SkTDArray<FontFamily*>& fontFamilies, in GetCustomFontFamilies() argument 781 parse_config_file(fontsXml, fontFamilies, basePath, false); in GetCustomFontFamilies() [all …]
|
D | SkFontMgr_android_parser.h | 106 void GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies); 109 void GetCustomFontFamilies(SkTDArray<FontFamily*>& fontFamilies,
|