From: Behdad Esfahbod Date: Tue, 28 Jul 2009 18:23:10 +0000 (-0400) Subject: Improve charset printing X-Git-Tag: 2.7.2~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7c12181f7a75a434e2139f4bee794046258342cf;p=fontconfig.git Improve charset printing --- diff --git a/src/fcdbg.c b/src/fcdbg.c index b2ab512..fd2d55a 100644 --- a/src/fcdbg.c +++ b/src/fcdbg.c @@ -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]); diff --git a/src/fclang.c b/src/fclang.c index 9d1858d..c5ad5ef 100644 --- a/src/fclang.c +++ b/src/fclang.c @@ -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"); }