summaryrefslogtreecommitdiff
path: root/src/fcstr.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2015-06-17 16:15:35 +0900
committerAkira TAGOH <akira@tagoh.org>2015-06-17 16:15:35 +0900
commit33fd436a3ec63ca58f3cb51bd4ab7b33e90d89c8 (patch)
tree88f5d66f386567143ada4fc38ae3e1e716c81166 /src/fcstr.c
parentf6d61c9beed856a925bd60c025b55284b2d88161 (diff)
Don't return FcFalse even when no fonts dirs is configured
Diffstat (limited to 'src/fcstr.c')
-rw-r--r--src/fcstr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fcstr.c b/src/fcstr.c
index 29a577d1..71e033a1 100644
--- a/src/fcstr.c
+++ b/src/fcstr.c
@@ -1347,6 +1347,14 @@ FcStrListDone (FcStrList *list)
free (list);
}
+int
+FcStrListGetLength (const FcStrList *list)
+{
+ if (!list)
+ return 0;
+ return list->set->num;
+}
+
#define __fcstr__
#include "fcaliastail.h"
#undef __fcstr__