X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffccfg.c;h=06f672b8a1ab74101006a52dc79aa8cdead547c6;hb=209750a4e0a3e1d7b8c5c971e9e2cbd5770d959f;hp=1454f33634cba9102fed65b620ad61951f765db2;hpb=424cfa1684f8af8bb6ecb01dc83bfc3d0a14f20a;p=platform%2Fupstream%2Ffontconfig.git diff --git a/src/fccfg.c b/src/fccfg.c index 1454f33..06f672b 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -164,7 +164,7 @@ FcConfigUptoDate (FcConfig *config) (font_time.set && (font_time.time - now) > 0)) { fprintf (stderr, - "Fontconfig warning: Directory/file mtime in the future. New fonts may not be detected\n"); + "Fontconfig warning: Directory/file mtime in the future. New fonts may not be detected.\n"); config->rescanTime = now; return FcTrue; } @@ -870,7 +870,6 @@ static FcValue FcConfigEvaluate (FcPattern *p, FcPattern *p_pat, FcMatchKind kind, FcExpr *e) { FcValue v, vl, vr; - FcResult r; FcMatrix *m; FcChar8 *str; FcOp op = FC_OP_GET_OP (e->op); @@ -928,11 +927,21 @@ FcConfigEvaluate (FcPattern *p, FcPattern *p_pat, FcMatchKind kind, FcExpr *e) break; case FcOpField: if (kind == FcMatchFont && e->u.name.kind == FcMatchPattern) - r = FcPatternObjectGet (p_pat, e->u.name.object, 0, &v); - else - r = FcPatternObjectGet (p, e->u.name.object, 0, &v); - if (r != FcResultMatch) + { + if (FcResultMatch != FcPatternObjectGet (p_pat, e->u.name.object, 0, &v)) + v.type = FcTypeVoid; + } + else if (kind == FcMatchPattern && e->u.name.kind == FcMatchFont) + { + fprintf (stderr, + "Fontconfig warning: tag has target=\"font\" in a .\n"); v.type = FcTypeVoid; + } + else + { + if (FcResultMatch != FcPatternObjectGet (p, e->u.name.object, 0, &v)) + v.type = FcTypeVoid; + } v = FcValueSave (v); break; case FcOpConst: