libdrawtext
changeset 85:7b5910925ce3
made the input and output unicode range text conversions accept and write in hex respectively
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 16 Apr 2014 11:29:13 +0300 |
parents | 6a9f72979b5d |
children | 69e1ccbda826 e12e0bdfa7f1 |
files | tools/font2glyphmap/src/font2glyphmap.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/tools/font2glyphmap/src/font2glyphmap.c Tue Apr 15 06:00:25 2014 +0300 1.2 +++ b/tools/font2glyphmap/src/font2glyphmap.c Wed Apr 16 11:29:13 2014 +0300 1.3 @@ -23,7 +23,7 @@ 1.4 struct coderange *node; 1.5 int start, end; 1.6 1.7 - if(sscanf(argv[++i], "%d-%d", &start, &end) != 2) { 1.8 + if(sscanf(argv[++i], "%i-%i", &start, &end) != 2) { 1.9 fprintf(stderr, "-range must be followed by a range of the form: START-END\n"); 1.10 return 1; 1.11 } 1.12 @@ -71,7 +71,7 @@ 1.13 struct coderange *r = clist; 1.14 clist = clist->next; 1.15 1.16 - sprintf(outfile, "%s_s%d_r%d-%d.%s", basename, font_size, r->start, r->end, SUFFIX); 1.17 + sprintf(outfile, "%s_s%d_r%04x-%04x.%s", basename, font_size, r->start, r->end, SUFFIX); 1.18 font2glyphmap(font, argv[i], outfile, font_size, r->start, r->end); 1.19 1.20 free(r);