libdrawtext

changeset 35:50e61b456c6a

merged font2glyphmap changes
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 17 Apr 2014 06:57:53 +0300
parents a01659c95d15 49a190d62271
children 99d08d5e282d
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/tools/font2glyphmap/src/font2glyphmap.c	Thu Apr 17 06:57:15 2014 +0300
     1.2 +++ b/tools/font2glyphmap/src/font2glyphmap.c	Thu Apr 17 06:57:53 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);