diff options
-rw-r--r-- | ucf.c | 1 | ||||
-rw-r--r-- | ucf.h | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -29,6 +29,7 @@ int ucf_init(struct ucf *f, const unsigned char *map, size_t len) f->ranges = map + U32(map+20) + 4; f->gmap = map + U32(map+24); f->glyphs = map + U32(map+28); + f->nglyphs = (len - (f->glyphs - map)) / f->S; f->ctab = f->ranges + 8*(f->nranges = U32(f->ranges - 4)); return 0; } @@ -6,7 +6,7 @@ struct ucf { int w, h, s, S; const unsigned char *ranges, *ctab, *gmap, *glyphs; - unsigned nranges; + unsigned nranges, nglyphs; }; int ucf_init(struct ucf *, const unsigned char *, size_t); |