Home
last modified time | relevance | path

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

/third_party/flutter/skia/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 …]
/third_party/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 …]
/third_party/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 …]
/third_party/skia/src/ports/
DSkFontMgr_android_parser.cpp702 static int append_system_font_families(SkTDArray<FontFamily*>& fontFamilies, in append_system_font_families() argument
705 int initialCount = fontFamilies.count(); in append_system_font_families()
706 int version = parse_config_file(LMP_SYSTEM_FONTS_FILE, fontFamilies, basePath, false); in append_system_font_families()
707 if (version < 0 || fontFamilies.count() == initialCount) { in append_system_font_families()
708 version = parse_config_file(OLD_SYSTEM_FONTS_FILE, fontFamilies, basePath, false); in append_system_font_families()
800 void SkFontMgr_Android_Parser::GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies) { in GetSystemFontFamilies() argument
805 if (append_system_font_families(fontFamilies, basePath) >= 21) { in GetSystemFontFamilies()
813 fontFamilies.append(fallbackFonts.count(), fallbackFonts.begin()); in GetSystemFontFamilies()
816 void SkFontMgr_Android_Parser::GetCustomFontFamilies(SkTDArray<FontFamily*>& fontFamilies, in GetCustomFontFamilies() argument
823 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,
/third_party/flutter/skia/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,
DSkFontMgr_config_parser.cpp542 static int append_system_font_families(SkTDArray<FontFamily*>& fontFamilies, in append_system_font_families() argument
545 int version = parse_config_file(g_lmpSystemFontsFile.c_str(), fontFamilies, basePath, false); in append_system_font_families()
549 void SkFontMgr_Config_Parser::GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies) in GetSystemFontFamilies() argument
557 append_system_font_families(fontFamilies, basePath); in GetSystemFontFamilies()
DSkFontMgr_config_parser.h127 void GetSystemFontFamilies(SkTDArray<FontFamily *> &fontFamilies);
/third_party/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()
/third_party/flutter/engine/flutter/lib/ui/text/
Dparagraph_builder.h41 const std::vector<std::string>& fontFamilies,
Dparagraph_builder.cc277 const std::vector<std::string>& fontFamilies, in pushStyle() argument
379 style.font_families = fontFamilies; in pushStyle()
/third_party/skia/site/docs/user/modules/
Dquickstart.md271 fontFamilies: ['Roboto'],
301 fontFamilies: ['Roboto'],
328 fontFamilies: ['Roboto'],
355 fontFamilies: ['Roboto'],
Dcanvaskit.md361 fontFamilies: ['Roboto', 'Noto Color Emoji'],
/third_party/skia/tools/perf-canvaskit-puppeteer/
Dcanvas_perf.js604 fontFamilies: ['Roboto'], property
628 fontFamilies: ['Roboto'], property
/third_party/skia/modules/canvaskit/npm_build/types/
Dcanvaskit-wasm-tests.ts528 fontFamilies: ['Noto Serif'],
536 fontFamilies: ['Roboto'],
549 fontFamilies: ['Noto Serif'],
Dindex.d.ts2792 fontFamilies?: string[]; property
2822 fontFamilies?: string[]; property
/third_party/flutter/flutter/packages/flutter/lib/src/painting/
Dstrut_style.dart408 // This is stored in order to prefix the fontFamilies in _fontFamilyFallback
Dtext_style.dart498 // This is stored in order to prefix the fontFamilies in _fontFamilyFallback
/third_party/flutter/engine/flutter/lib/ui/
Dtext.dart1789 List<dynamic> fontFamilies,