Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString.
authorKeith Packard <keithp@neko.keithp.com>
Fri, 1 Sep 2006 01:16:00 +0000 (18:16 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Fri, 1 Sep 2006 01:16:00 +0000 (18:16 -0700)
Applications explicitly setting FC_LANG with string would fail due
to typechecking disallowing this case.

src/fcname.c

index 74411d7..f55190d 100644 (file)
@@ -301,6 +301,10 @@ FcObjectValidType (FcObject object, FcType type)
            if (type == FcTypeDouble || type == FcTypeInteger)
                return FcTrue;
            break;
+       case FcTypeLangSet:
+           if (type == FcTypeLangSet || type == FcTypeString)
+               return FcTrue;
+           break;
        default:
            if (type == t->type)
                return FcTrue;