Add a few more families to fonts.conf, make FC_ANTIALIAS less important for
matching, fix family->generic mapping
This commit is contained in:
parent
2623c1ebee
commit
f534109f5a
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $XFree86: xc/lib/fontconfig/src/fccfg.c,v 1.7 2002/05/29 08:21:33 keithp Exp $
|
||||
* $XFree86: xc/lib/fontconfig/src/fccfg.c,v 1.11 2002/06/08 17:32:04 keithp Exp $
|
||||
*
|
||||
* Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
|
||||
*
|
||||
|
@ -866,11 +866,12 @@ FcConfigEvaluate (FcPattern *p, FcExpr *e)
|
|||
static FcValueList *
|
||||
FcConfigMatchValueList (FcPattern *p,
|
||||
FcTest *t,
|
||||
FcValueList *v)
|
||||
FcValueList *values)
|
||||
{
|
||||
FcValueList *ret = 0;
|
||||
FcExpr *e = t->expr;
|
||||
FcValue value;
|
||||
FcValueList *v;
|
||||
|
||||
while (e)
|
||||
{
|
||||
|
@ -885,7 +886,7 @@ FcConfigMatchValueList (FcPattern *p,
|
|||
e = 0;
|
||||
}
|
||||
|
||||
for (; v; v = v->next)
|
||||
for (v = values; v; v = v->next)
|
||||
{
|
||||
if (FcConfigCompareValue (v->value, t->op, value))
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $XFree86: xc/lib/fontconfig/src/fcmatch.c,v 1.9 2002/06/02 21:07:56 keithp Exp $
|
||||
* $XFree86: xc/lib/fontconfig/src/fcmatch.c,v 1.11 2002/06/08 17:32:04 keithp Exp $
|
||||
*
|
||||
* Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
|
||||
*
|
||||
|
@ -109,29 +109,29 @@ static FcMatcher _FcMatchers [] = {
|
|||
{ FC_CHARSET, FcCompareCharSet },
|
||||
#define MATCH_CHARSET 1
|
||||
|
||||
{ FC_ANTIALIAS, FcCompareBool, },
|
||||
#define MATCH_ANTIALIAS 2
|
||||
|
||||
{ FC_LANG, FcCompareString },
|
||||
#define MATCH_LANG 3
|
||||
#define MATCH_LANG 2
|
||||
|
||||
{ FC_FAMILY, FcCompareString, },
|
||||
#define MATCH_FAMILY 4
|
||||
#define MATCH_FAMILY 3
|
||||
|
||||
{ FC_SPACING, FcCompareInteger, },
|
||||
#define MATCH_SPACING 5
|
||||
#define MATCH_SPACING 4
|
||||
|
||||
{ FC_PIXEL_SIZE, FcCompareSize, },
|
||||
#define MATCH_PIXEL_SIZE 6
|
||||
#define MATCH_PIXEL_SIZE 5
|
||||
|
||||
{ FC_STYLE, FcCompareString, },
|
||||
#define MATCH_STYLE 7
|
||||
#define MATCH_STYLE 6
|
||||
|
||||
{ FC_SLANT, FcCompareInteger, },
|
||||
#define MATCH_SLANT 8
|
||||
#define MATCH_SLANT 7
|
||||
|
||||
{ FC_WEIGHT, FcCompareInteger, },
|
||||
#define MATCH_WEIGHT 9
|
||||
#define MATCH_WEIGHT 8
|
||||
|
||||
{ FC_ANTIALIAS, FcCompareBool, },
|
||||
#define MATCH_ANTIALIAS 9
|
||||
|
||||
{ FC_RASTERIZER, FcCompareString, },
|
||||
#define MATCH_RASTERIZER 10
|
||||
|
|
Loading…
Reference in New Issue