Lines Matching refs:families
346 SkFontMgr_Custom::Families* families) const override in loadSystemFonts()
348 load_directory_fonts(scanner, fBaseDirectory, ".ttf", families); in loadSystemFonts()
349 load_directory_fonts(scanner, fBaseDirectory, ".ttc", families); in loadSystemFonts()
350 load_directory_fonts(scanner, fBaseDirectory, ".otf", families); in loadSystemFonts()
351 load_directory_fonts(scanner, fBaseDirectory, ".pfb", families); in loadSystemFonts()
353 if (families->empty()) { in loadSystemFonts()
355 families->push_back().reset(family); in loadSystemFonts()
361 static SkFontStyleSet_Custom* find_family(SkFontMgr_Custom::Families& families, in find_family() argument
364 for (int i = 0; i < families.count(); ++i) { in find_family()
365 if (families[i]->getFamilyName().equals(familyName)) { in find_family()
366 return families[i].get(); in find_family()
374 SkFontMgr_Custom::Families* families) in load_directory_fonts() argument
407 SkFontStyleSet_Custom* addTo = find_family(*families, realname.c_str()); in load_directory_fonts()
410 families->push_back().reset(addTo); in load_directory_fonts()
422 load_directory_fonts(scanner, dirname, suffix, families); in load_directory_fonts()
443 SkFontMgr_Custom::Families* families) const override in loadSystemFonts()
447 load_embedded_font(scanner, fontEntry.data, fontEntry.size, i, families); in loadSystemFonts()
450 if (families->empty()) { in loadSystemFonts()
452 families->push_back().reset(family); in loadSystemFonts()
458 static SkFontStyleSet_Custom* find_family(SkFontMgr_Custom::Families& families, in find_family() argument
461 for (int i = 0; i < families.count(); ++i) { in find_family()
462 if (families[i]->getFamilyName().equals(familyName)) { in find_family()
463 return families[i].get(); in find_family()
471 SkFontMgr_Custom::Families* families) in load_embedded_font() argument
494 SkFontStyleSet_Custom* addTo = find_family(*families, realname.c_str()); in load_embedded_font()
497 families->push_back().reset(addTo); in load_embedded_font()