Lines Matching refs:pat
384 FcPattern *pat, *best;
396 pat = FcNameParse(s->fontfile ? s->fontfile :
398 if (!pat) {
399 av_log(ctx, AV_LOG_ERROR, "could not parse fontconfig pat");
403 FcPatternAddString(pat, FC_FAMILY, s->font);
405 FcPatternAddDouble(pat, FC_SIZE, (double)s->fontsize);
407 FcDefaultSubstitute(pat);
409 if (!FcConfigSubstitute(fontconfig, pat, FcMatchPattern)) {
411 FcPatternDestroy(pat);
415 best = FcFontMatch(fontconfig, pat, &result);
416 FcPatternDestroy(pat);