# HG changeset patch # User John Tsiombikas # Date 1397636953 -10800 # Node ID 7b5910925ce36e7a640ba98274e021aabf44d6e6 # Parent 6a9f72979b5da663ee63ae9ab4c12f17db0f4949 made the input and output unicode range text conversions accept and write in hex respectively diff -r 6a9f72979b5d -r 7b5910925ce3 tools/font2glyphmap/src/font2glyphmap.c --- a/tools/font2glyphmap/src/font2glyphmap.c Tue Apr 15 06:00:25 2014 +0300 +++ b/tools/font2glyphmap/src/font2glyphmap.c Wed Apr 16 11:29:13 2014 +0300 @@ -23,7 +23,7 @@ struct coderange *node; int start, end; - if(sscanf(argv[++i], "%d-%d", &start, &end) != 2) { + if(sscanf(argv[++i], "%i-%i", &start, &end) != 2) { fprintf(stderr, "-range must be followed by a range of the form: START-END\n"); return 1; } @@ -71,7 +71,7 @@ struct coderange *r = clist; clist = clist->next; - sprintf(outfile, "%s_s%d_r%d-%d.%s", basename, font_size, r->start, r->end, SUFFIX); + sprintf(outfile, "%s_s%d_r%04x-%04x.%s", basename, font_size, r->start, r->end, SUFFIX); font2glyphmap(font, argv[i], outfile, font_size, r->start, r->end); free(r);