From 551b6b2cd7d94dd90a9eb22bdb752f264afc48ce Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 31 Aug 2006 18:16:00 -0700 Subject: [PATCH] Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString. Applications explicitly setting FC_LANG with string would fail due to typechecking disallowing this case. --- src/fcname.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fcname.c b/src/fcname.c index 74411d7..f55190d 100644 --- a/src/fcname.c +++ b/src/fcname.c @@ -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; -- 2.39.2