libttf: check directory() result
parent
4bbf1d12b5
commit
e9df4c718a
|
@ -292,7 +292,7 @@ ttfopen(char *name, int ppem, int)
|
||||||
return nil;
|
return nil;
|
||||||
u->bin = b;
|
u->bin = b;
|
||||||
u->nkern = -1;
|
u->nkern = -1;
|
||||||
directory(u);
|
if(directory(u) < 0) goto error;
|
||||||
if(ttfgototable(u, "head") < 0) goto error;
|
if(ttfgototable(u, "head") < 0) goto error;
|
||||||
ttfunpack(u, "16 w W 16 wwww 6 w", &u->flags, &u->emsize, &u->xmin, &u->ymin, &u->xmax, &u->ymax, &u->longloca);
|
ttfunpack(u, "16 w W 16 wwww 6 w", &u->flags, &u->emsize, &u->xmin, &u->ymin, &u->xmax, &u->ymax, &u->longloca);
|
||||||
if(ttfgototable(u, "maxp") < 0) goto error;
|
if(ttfgototable(u, "maxp") < 0) goto error;
|
||||||
|
|
Loading…
Reference in New Issue