Lines Matching refs:vs
139 uint32_t FontCollection::calcFamilyScore(uint32_t ch, uint32_t vs, int variant, uint32_t langListId,
142 const uint32_t coverageScore = calcCoverageScore(ch, vs, fontFamily);
163 // - Returns 2 if the vs is a color variation selector (U+FE0F) and if the font is an emoji font.
164 // - Returns 2 if the vs is a text variation selector (U+FE0E) and if the font is not an emoji font.
167 uint32_t FontCollection::calcCoverageScore(uint32_t ch, uint32_t vs,
169 const bool hasVSGlyph = (vs != 0) && fontFamily->hasGlyph(ch, vs);
175 if ((vs == 0 || hasVSGlyph) && mFamilies[0] == fontFamily) {
181 if (vs == 0) {
189 if (vs == EMOJI_STYLE_VS || vs == TEXT_STYLE_VS) {
199 if (vs == EMOJI_STYLE_VS) {
201 } else { // vs == TEXT_STYLE_VS
251 const std::shared_ptr<FontFamily>& FontCollection::getFamilyForChar(uint32_t ch, uint32_t vs,
259 if (vs != 0) {
270 vs == 0 ? mFamilies[mFamilyVec[i]] : mFamilies[i];
271 const uint32_t score = calcFamilyScore(ch, vs, variant, langListId, family);
291 return getFamilyForChar(ch, vs, langListId, variant);
296 return vs == 0 ? mFamilies[mFamilyVec[bestFamilyIndex]] : mFamilies[bestFamilyIndex];