]> git.wh0rd.org - fontconfig.git/commitdiff
Improve charset printing
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 28 Jul 2009 18:23:10 +0000 (14:23 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 28 Jul 2009 18:23:10 +0000 (14:23 -0400)
src/fcdbg.c
src/fclang.c

index b2ab512aa7bffd86cb9b0d3210ee4716e695066d..fd2d55a6b23b73394b8c332d99d85c269036999d 100644 (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]);
index 9d1858de2031dd01afba970ed3e3ddee195c417f..c5ad5ef9b02aa0eeb755167368efef961796a9d2 100644 (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");
        }