void
FcValuePrint (const FcValue v)
{
+ FcStrBuf buf;
+ FcChar8 init_buf[1024];
+
switch (v.type) {
case FcTypeVoid:
printf (" <void>");
printf (" set");
break;
case FcTypeLangSet:
- printf (" langset");
+ FcStrBufInit (&buf, init_buf, sizeof (init_buf));
+ if (FcNameUnparseLangSet (&buf, v.u.l) && FcStrBufChar (&buf,'\0'))
+ printf (" %s", buf.buf);
+ else
+ printf ("langset (alloc error)");
+ FcStrBufDestroy (&buf);
break;
case FcTypeFTFace:
printf (" face");
for (; l; l = l->next)
{
FcValuePrint (l->value);
- if (l->binding == FcValueBindingWeak)
+ switch (l->binding) {
+ case FcValueBindingWeak:
printf ("(w)");
+ break;
+ case FcValueBindingStrong:
+ printf ("(s)");
+ break;
+ case FcValueBindingSame:
+ printf ("(=)");
+ break;
+ }
}
}