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
printf ("\n");
for (i = 0; i < c->num; i++)
{
intptr_t leaf_offset = leaves[i];
FcCharLeaf *leaf = FcOffsetToPtr (leaves, leaf_offset, FcCharLeaf);
if (i)
printf ("\t");
printf ("\t");
printf ("%04x:", numbers[i]);
for (j = 0; j < 256/32; j++)
printf (" %08x", leaf->map[j]);

View File

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