Lines Matching refs:match
156 // Equivalence classes, used to match the Liberation and other fonts
181 // Match the font name against a whilelist of fonts, returning the equivalence
186 // replacement is a "strong" match (that is, an equivalent font) or
187 // a "weak" match (that is, fontconfig's next-best attempt at finding a
358 FcPattern* match = NULL;
362 match = current;
367 if (match && !IsFallbackFontAllowed(family)) {
370 const char* post_match_family = get_name(match, FC_FAMILY, id);
379 // -> We should treat this case as a good match.
389 return match;
474 // for something so we need a way to tell if the match which it has found is
482 // family name after resolving. If the two are equal, it's a good match.
489 // -> good match
495 // -> BAD match
512 FcPattern* match = MatchFont(font_set, post_config_family, familyStr);
513 if (!match) {
521 // From here out we just extract our results from 'match'
523 post_config_family = get_name(match, FC_FAMILY);
529 const char* c_filename = get_name(match, FC_FILE);
536 if (FcPatternGetInteger(match, FC_INDEX, 0, &face_index) != FcResultMatch) {
551 *outStyle = GetFontStyle(match);
596 FcPattern* match = fs->fonts[i];
597 const char* famName = get_name(match, FC_FAMILY);
635 // for something so we need a way to tell if the match which it has found is
643 // family name after resolving. If the two are equal, it's a good match.
650 // -> good match
656 // -> BAD match
669 FcPattern* match = MatchFont(font_set, post_config_family, familyStr);
670 if (!match) {
678 // From here out we just extract our results from 'match'
680 if (FcPatternGetString(match, FC_FAMILY, 0, &post_config_family) != FcResultMatch) {
686 if (FcPatternGetString(match, FC_FILE, 0, &c_filename) != FcResultMatch) {
692 if (FcPatternGetInteger(match, FC_INDEX, 0, &face_index) != FcResultMatch) {
707 *outStyle = GetFontStyle(match);
714 FcPattern** match = MatchFont(font_set, post_config_family, &count);
715 if (!match) {
725 const char* justName = find_just_name(get_name(match[i], FC_FILE));
727 *trimmedMatches.append() = match[i];