From 34545e78590150e662b69f3833d2b79f9a20f56e Mon Sep 17 00:00:00 2001 From: Andrey Chilikin Date: Wed, 10 Dec 2014 20:25:27 +0000 Subject: [PATCH] Updated --- bdf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bdf.c b/bdf.c index 7a9d800..8353d2d 100644 --- 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); -- 2.39.5