]> git.wh0rd.org Git - fontconfig.git/commitdiff
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 74411d7253234c8eefd02cb42ddfb176ab608782..f55190d9e85bde1da58313e7a53b37213c64c533 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;