]> Chaos Git - corbenik/bdfe.git/commitdiff
Updated
authorAndrey Chilikin <achilikin@gmail.com>
Wed, 10 Dec 2014 20:25:27 +0000 (20:25 +0000)
committerAndrey Chilikin <achilikin@gmail.com>
Wed, 10 Dec 2014 20:25:27 +0000 (20:25 +0000)
bdf.c

diff --git a/bdf.c b/bdf.c
index 7a9d800edc8fd3f82057776428b011a0b66593af..8353d2d2ef65d32bf67b0b3ca6024d94c6b12381 100644 (file)
--- a/bdf.c
+++ b/bdf.c
@@ -256,10 +256,14 @@ bdfe_t *bdf_convert(const char *name, unsigned gmin, unsigned gmax, unsigned asc
                                                memcpy(gout, gin, dy);
 
                                        if (!mute) {
+                                               // glyph per line
                                                if (flags & BDF_GPL) {
                                                        printf("\t");
-                                                       for(i = 0; i < dy; i++)
+                                                       for(i = 0; i < gh; i++) {
+                                                               if ((i == gh/2) && (flags & BDF_ROTATE))
+                                                                       printf("\n\t");
                                                                printf("0x%02X,", gout[i]);
+                                                       }
                                                        printf(" // %5d", idx);
                                                        if (isprint(idx))
                                                                printf(" '%c'", idx);