Lines Matching refs:family
490 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { in expectVSGlyphs() argument
497 EXPECT_FALSE(family->hasGlyph(codepoint, i)) in expectVSGlyphs()
500 EXPECT_TRUE(family->hasGlyph(codepoint, i)) in expectVSGlyphs()
507 std::shared_ptr<FontFamily> family = buildFontFamily(kVsTestFont); in TEST_F() local
518 EXPECT_TRUE(family->getCoverage().get(kSupportedChar1)); in TEST_F()
519 expectVSGlyphs(family.get(), kSupportedChar1, std::set<uint32_t>({kVS1, kVS17, kVS18, kVS19})); in TEST_F()
522 EXPECT_TRUE(family->getCoverage().get(kSupportedChar2)); in TEST_F()
523 expectVSGlyphs(family.get(), kSupportedChar2, std::set<uint32_t>({kVS2, kVS18, kVS19, kVS20})); in TEST_F()
526 EXPECT_TRUE(family->getCoverage().get(kNoVsSupportedChar)); in TEST_F()
527 expectVSGlyphs(family.get(), kNoVsSupportedChar, std::set<uint32_t>()); in TEST_F()
530 EXPECT_FALSE(family->getCoverage().get(kVsOnlySupportedChar)); in TEST_F()
531 expectVSGlyphs(family.get(), kVsOnlySupportedChar, std::set<uint32_t>({kVS3, kVS19, kVS20})); in TEST_F()
534 EXPECT_FALSE(family->getCoverage().get(kNotSupportedChar)); in TEST_F()
535 expectVSGlyphs(family.get(), kNotSupportedChar, std::set<uint32_t>()); in TEST_F()
553 std::shared_ptr<FontFamily> family = buildFontFamily(testCase.fontPath); in TEST_F() local
554 EXPECT_EQ(testCase.hasVSTable, family->hasVSTable()); in TEST_F()
727 FontFamily family(std::move(fonts)); in TEST_F() local
728 FakedFont closest = family.getClosestMatch(testCase.wantedStyle); in TEST_F()