From 7c12181f7a75a434e2139f4bee794046258342cf Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 28 Jul 2009 14:23:10 -0400 Subject: [PATCH] Improve charset printing --- src/fcdbg.c | 4 ++-- src/fclang.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"); } -- 2.39.5