# HG changeset patch # User John Tsiombikas # Date 1397636953 -10800 # Node ID 49a190d6227148fd92e9b953c0758345285fb35c # Parent 007b82a5859676991a7aeb488581f2dd3e5f1210 made the input and output unicode range text conversions accept and write in hex respectively diff -r 007b82a58596 -r 49a190d62271 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);