bdf2sfd

BDF to SFD converter, allowing to vectorize bitmap fonts
Log | Files | Refs | README | LICENSE

commit 43629a755292a8c153df5a897cd5664418d0229b
parent 34daba00a3ba076034291216c38902194b2102b9
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  9 Feb 2021 11:24:38 +0100

Reorder and reformat variables declaration.

Diffstat:
Msrc/bdf2sfd.c | 30++++++++++++++----------------
1 file changed, 14 insertions(+), 16 deletions(-)

diff --git a/src/bdf2sfd.c b/src/bdf2sfd.c @@ -55,34 +55,32 @@ error(const char *str) int main(int argc, char *argv[]) { - bool readglyph = false; - bool name_allocated = false, psname_allocated = false; - - char *input; - char *value = NULL; - char linebuffer[LINE_LENGTH_MAX]; - - const char *errstr = NULL; - - int8_t opt; - int key, stride; + struct timespec begin, current, elapsed; + struct stat bdf_stat; float x = 0.0, y = 0.0; float xlength = 64.0, ylength = 64.0; /* Default for 8x16 fonts */ + uint64_t glyphes = 0; uint32_t height = 0, width = 0; uint32_t ascent = 0, descent = 0; uint32_t mask = 0; - uint64_t glyphes = 0; - struct timespec begin, current, elapsed; - struct stat bdf_stat; + int opt, key, stride; - struct fontinfo font; - memset(&font, 0, sizeof(struct fontinfo)); + const char *errstr = NULL; + char *input; + char *value = NULL; + char linebuffer[LINE_LENGTH_MAX]; + + bool readglyph = false; + bool name_allocated = false, psname_allocated = false; FILE *bdf; + struct fontinfo font; + memset(&font, 0, sizeof(struct fontinfo)); + if (pledge("stdio rpath", NULL) == -1) { err(EXIT_FAILURE, "pledge"); }