Lines Matching refs:family
502 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { in expectVSGlyphs() argument
509 EXPECT_FALSE(family->hasGlyph(codepoint, i)) in expectVSGlyphs()
512 EXPECT_TRUE(family->hasGlyph(codepoint, i)) in expectVSGlyphs()
519 std::shared_ptr<FontFamily> family = buildFontFamily(kVsTestFont); in TEST_F() local
530 EXPECT_TRUE(family->getCoverage().get(kSupportedChar1)); in TEST_F()
531 expectVSGlyphs(family.get(), kSupportedChar1, std::set<uint32_t>({kVS1, kVS17, kVS18, kVS19})); in TEST_F()
534 EXPECT_TRUE(family->getCoverage().get(kSupportedChar2)); in TEST_F()
535 expectVSGlyphs(family.get(), kSupportedChar2, std::set<uint32_t>({kVS2, kVS18, kVS19, kVS20})); in TEST_F()
538 EXPECT_TRUE(family->getCoverage().get(kNoVsSupportedChar)); in TEST_F()
539 expectVSGlyphs(family.get(), kNoVsSupportedChar, std::set<uint32_t>()); in TEST_F()
542 EXPECT_FALSE(family->getCoverage().get(kVsOnlySupportedChar)); in TEST_F()
543 expectVSGlyphs(family.get(), kVsOnlySupportedChar, std::set<uint32_t>({kVS3, kVS19, kVS20})); in TEST_F()
546 EXPECT_FALSE(family->getCoverage().get(kNotSupportedChar)); in TEST_F()
547 expectVSGlyphs(family.get(), kNotSupportedChar, std::set<uint32_t>()); in TEST_F()
565 std::shared_ptr<FontFamily> family = buildFontFamily(testCase.fontPath); in TEST_F() local
566 EXPECT_EQ(testCase.hasVSTable, family->hasVSTable()); in TEST_F()
739 FontFamily family(std::move(fonts)); in TEST_F() local
740 FakedFont closest = family.getClosestMatch(testCase.wantedStyle); in TEST_F()