Home
last modified time | relevance | path

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

/external/skqp/tests/
DFontMgrAndroidParserTest.cpp25 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()
[all …]
/external/skia/tests/
DFontMgrAndroidParserTest.cpp26 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()
[all …]
/external/skia/modules/canvaskit/tests/
Dparagraph.spec.js64 fontFamilies: ['Noto Serif'], property
78 fontFamilies: ['Noto Serif'], property
148 fontFamilies: ['Noto Serif'], property
176 fontFamilies: ['Noto Serif'], property
220 fontFamilies: ['Noto Serif'], property
252 fontFamilies: ['Noto Serif'], property
282 fontFamilies: ['Roboto'], property
287 fontFamilies: ['Roboto'], property
295 fontFamilies: ['Roboto'], property
301 fontFamilies: ['Roboto'], property
[all …]
/external/skqp/src/ports/
DSkFontMgr_android_parser.cpp692 static int append_system_font_families(SkTDArray<FontFamily*>& fontFamilies, in append_system_font_families() argument
695 int initialCount = fontFamilies.count(); in append_system_font_families()
696 int version = parse_config_file(LMP_SYSTEM_FONTS_FILE, fontFamilies, basePath, false); in append_system_font_families()
697 if (version < 0 || fontFamilies.count() == initialCount) { in append_system_font_families()
698 version = parse_config_file(OLD_SYSTEM_FONTS_FILE, fontFamilies, basePath, false); in append_system_font_families()
790 void SkFontMgr_Android_Parser::GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies) { in GetSystemFontFamilies() argument
795 if (append_system_font_families(fontFamilies, basePath) >= 21) { in GetSystemFontFamilies()
803 fontFamilies.append(fallbackFonts.count(), fallbackFonts.begin()); in GetSystemFontFamilies()
806 void SkFontMgr_Android_Parser::GetCustomFontFamilies(SkTDArray<FontFamily*>& fontFamilies, in GetCustomFontFamilies() argument
813 parse_config_file(fontsXml, fontFamilies, basePath, false); in GetCustomFontFamilies()
[all …]
DSkFontMgr_android_parser.h109 void GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies);
112 void GetCustomFontFamilies(SkTDArray<FontFamily*>& fontFamilies,
/external/skia/src/ports/
DSkFontMgr_android_parser.cpp694 static int append_system_font_families(SkTDArray<FontFamily*>& fontFamilies, in append_system_font_families() argument
697 int initialCount = fontFamilies.count(); in append_system_font_families()
698 int version = parse_config_file(LMP_SYSTEM_FONTS_FILE, fontFamilies, basePath, false); in append_system_font_families()
699 if (version < 0 || fontFamilies.count() == initialCount) { in append_system_font_families()
700 version = parse_config_file(OLD_SYSTEM_FONTS_FILE, fontFamilies, basePath, false); in append_system_font_families()
792 void SkFontMgr_Android_Parser::GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies) { in GetSystemFontFamilies() argument
797 if (append_system_font_families(fontFamilies, basePath) >= 21) { in GetSystemFontFamilies()
805 fontFamilies.append(fallbackFonts.count(), fallbackFonts.begin()); in GetSystemFontFamilies()
808 void SkFontMgr_Android_Parser::GetCustomFontFamilies(SkTDArray<FontFamily*>& fontFamilies, in GetCustomFontFamilies() argument
815 parse_config_file(fontsXml, fontFamilies, basePath, false); in GetCustomFontFamilies()
[all …]
DSkFontMgr_android_parser.h109 void GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies);
112 void GetCustomFontFamilies(SkTDArray<FontFamily*>& fontFamilies,
/external/lottie/lottie/src/main/java/com/airbnb/lottie/manager/
DFontAssetManager.java24 private final Map<String, Typeface> fontFamilies = new HashMap<>(); field in FontAssetManager
68 Typeface defaultTypeface = fontFamilies.get(fontFamily); in getFontFamily()
90 fontFamilies.put(fontFamily, typeface); in getFontFamily()
/external/skia/modules/canvaskit/
Dparagraph_bindings.cpp89 const char** fontFamilies = reinterpret_cast<const char**>(s.fontFamiliesPtr); in toStrutStyle() local
90 if (fontFamilies != nullptr) { in toStrutStyle()
93 ff.emplace_back(fontFamilies[i]); in toStrutStyle()
172 const char** fontFamilies = reinterpret_cast<const char**>(s.fontFamiliesPtr); in toTextStyle() local
173 if (fontFamilies != nullptr) { in toTextStyle()
176 ff.emplace_back(fontFamilies[i]); in toTextStyle()
/external/skia/site/docs/user/modules/
Dquickstart.md271 fontFamilies: ['Roboto'],
301 fontFamilies: ['Roboto'],
328 fontFamilies: ['Roboto'],
355 fontFamilies: ['Roboto'],
Dcanvaskit.md382 fontFamilies: ['Roboto', 'Noto Color Emoji'],
/external/skia/tools/perf-canvaskit-puppeteer/
Dcanvas_perf.js604 fontFamilies: ['Roboto'], property
628 fontFamilies: ['Roboto'], property
/external/skia/modules/canvaskit/npm_build/types/
Dcanvaskit-wasm-tests.ts523 fontFamilies: ['Noto Serif'],
531 fontFamilies: ['Roboto'],
544 fontFamilies: ['Noto Serif'],
Dindex.d.ts2724 fontFamilies?: string[]; property
2754 fontFamilies?: string[]; property