Improve charset printing

This commit is contained in:
Behdad Esfahbod 2009-07-28 14:23:10 -04:00
parent d2c8ac373e
commit 7c12181f7a
2 changed files with 4 additions and 4 deletions

View File

@ -116,13 +116,13 @@ FcCharSetPrint (const FcCharSet *c)
} }
#endif #endif
printf ("\n");
for (i = 0; i < c->num; i++) for (i = 0; i < c->num; i++)
{ {
intptr_t leaf_offset = leaves[i]; intptr_t leaf_offset = leaves[i];
FcCharLeaf *leaf = FcOffsetToPtr (leaves, leaf_offset, FcCharLeaf); FcCharLeaf *leaf = FcOffsetToPtr (leaves, leaf_offset, FcCharLeaf);
if (i) printf ("\t");
printf ("\t");
printf ("%04x:", numbers[i]); printf ("%04x:", numbers[i]);
for (j = 0; j < 256/32; j++) for (j = 0; j < 256/32; j++)
printf (" %08x", leaf->map[j]); printf (" %08x", leaf->map[j]);

View File

@ -61,7 +61,7 @@ FcFreeTypeLangSet (const FcCharSet *charset,
return 0; return 0;
if (FcDebug() & FC_DBG_LANGSET) if (FcDebug() & FC_DBG_LANGSET)
{ {
printf ("font charset\n"); printf ("font charset");
FcCharSetPrint (charset); FcCharSetPrint (charset);
printf ("\n"); printf ("\n");
} }
@ -69,7 +69,7 @@ FcFreeTypeLangSet (const FcCharSet *charset,
{ {
if (FcDebug() & FC_DBG_LANGSET) if (FcDebug() & FC_DBG_LANGSET)
{ {
printf ("%s charset\n", fcLangCharSets[i].lang); printf ("%s charset", fcLangCharSets[i].lang);
FcCharSetPrint (&fcLangCharSets[i].charset); FcCharSetPrint (&fcLangCharSets[i].charset);
printf ("\n"); printf ("\n");
} }