]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcname.c
Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString.
[fontconfig.git] / 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;