Home
last modified time | relevance | path

Searched refs:fontFamilies (Results 1 – 7 of 7) sorted by relevance

/external/chromium_org/third_party/skia/tests/
DFontConfigParser.cpp12 int CountFallbacks(SkTDArray<FontFamily*> fontFamilies) { in CountFallbacks() argument
14 for (int i = 0; i < fontFamilies.count(); i++) { in CountFallbacks()
15 if (fontFamilies[i]->fIsFallbackFont) { in CountFallbacks()
22 void ValidateLoadedFonts(SkTDArray<FontFamily*> fontFamilies, in ValidateLoadedFonts() argument
24 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5); in ValidateLoadedFonts()
25 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif")); in ValidateLoadedFonts()
27 !strcmp(fontFamilies[0]->fFonts[0].fFileName.c_str(), in ValidateLoadedFonts()
29 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont); in ValidateLoadedFonts()
32 void DumpLoadedFonts(SkTDArray<FontFamily*> fontFamilies) { in DumpLoadedFonts() argument
34 for (int i = 0; i < fontFamilies.count(); ++i) { in DumpLoadedFonts()
[all …]
/external/skia/src/ports/
DSkFontConfigParser_android.cpp222 static void getSystemFontFamilies(SkTDArray<FontFamily*> &fontFamilies) { in getSystemFontFamilies() argument
223 parseConfigFile(SYSTEM_FONTS_FILE, fontFamilies); in getSystemFontFamilies()
259 void SkFontConfigParser::GetFontFamilies(SkTDArray<FontFamily*> &fontFamilies) { in GetFontFamilies() argument
261 getSystemFontFamilies(fontFamilies); in GetFontFamilies()
268 *fontFamilies.append() = fallbackFonts[i]; in GetFontFamilies()
272 void SkFontConfigParser::GetTestFontFamilies(SkTDArray<FontFamily*> &fontFamilies, in GetTestFontFamilies() argument
275 parseConfigFile(testMainConfigFile, fontFamilies); in GetTestFontFamilies()
283 *fontFamilies.append() = fallbackFonts[i]; in GetTestFontFamilies()
DSkFontConfigParser_android.h45 void GetFontFamilies(SkTDArray<FontFamily*> &fontFamilies);
51 void GetTestFontFamilies(SkTDArray<FontFamily*> &fontFamilies,
DSkFontConfigInterface_android.cpp79 SkFontConfigInterfaceAndroid(SkTDArray<FontFamily*>& fontFamilies);
142 SkTDArray<FontFamily*> fontFamilies; in getSingletonInterface() local
144 SkFontConfigParser::GetFontFamilies(fontFamilies); in getSingletonInterface()
146 SkFontConfigParser::GetTestFontFamilies(fontFamilies, gTestMainConfigFile, in getSingletonInterface()
150 gFontConfigInterface = new SkFontConfigInterfaceAndroid(fontFamilies); in getSingletonInterface()
153 fontFamilies.deleteAll(); in getSingletonInterface()
204 SkFontConfigInterfaceAndroid::SkFontConfigInterfaceAndroid(SkTDArray<FontFamily*>& fontFamilies) : in SkFontConfigInterfaceAndroid() argument
205 fFonts(fontFamilies.count()), in SkFontConfigInterfaceAndroid()
206 fFontFamilies(fontFamilies.count() / FamilyRec::FONT_STYLE_COUNT), in SkFontConfigInterfaceAndroid()
213 for (int i = 0; i < fontFamilies.count(); ++i) { in SkFontConfigInterfaceAndroid()
[all …]
/external/chromium_org/third_party/skia/src/ports/
DSkFontConfigParser_android.cpp472 static void getSystemFontFamilies(SkTDArray<FontFamily*> &fontFamilies) { in getSystemFontFamilies() argument
473 int initialCount = fontFamilies.count(); in getSystemFontFamilies()
474 parseConfigFile(LMP_SYSTEM_FONTS_FILE, fontFamilies); in getSystemFontFamilies()
476 if (initialCount == fontFamilies.count()) { in getSystemFontFamilies()
477 parseConfigFile(OLD_SYSTEM_FONTS_FILE, fontFamilies); in getSystemFontFamilies()
571 void SkFontConfigParser::GetFontFamilies(SkTDArray<FontFamily*> &fontFamilies) { in GetFontFamilies() argument
573 getSystemFontFamilies(fontFamilies); in GetFontFamilies()
580 *fontFamilies.append() = fallbackFonts[i]; in GetFontFamilies()
584 void SkFontConfigParser::GetTestFontFamilies(SkTDArray<FontFamily*> &fontFamilies, in GetTestFontFamilies() argument
587 parseConfigFile(testMainConfigFile, fontFamilies); in GetTestFontFamilies()
[all …]
DSkFontConfigParser_android.h97 void GetFontFamilies(SkTDArray<FontFamily*> &fontFamilies);
103 void GetTestFontFamilies(SkTDArray<FontFamily*> &fontFamilies,
DSkFontMgr_android.cpp273 SkTDArray<FontFamily*> fontFamilies; in SkFontMgr_Android() local
274 SkFontConfigParser::GetFontFamilies(fontFamilies); in SkFontMgr_Android()
275 this->buildNameToFamilyMap(fontFamilies, NULL); in SkFontMgr_Android()
281 SkTDArray<FontFamily*> fontFamilies; in SkFontMgr_Android() local
282 SkFontConfigParser::GetTestFontFamilies(fontFamilies, mainConfigFile, fallbackConfigFile); in SkFontMgr_Android()
283 this->buildNameToFamilyMap(fontFamilies, basePath); in SkFontMgr_Android()