libttf: check directory() result
This commit is contained in:
parent
4bbf1d12b5
commit
e9df4c718a
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ ttfopen(char *name, int ppem, int)
|
|||
return nil;
|
||||
u->bin = b;
|
||||
u->nkern = -1;
|
||||
directory(u);
|
||||
if(directory(u) < 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);
|
||||
if(ttfgototable(u, "maxp") < 0) goto error;
|
||||
|
|
Loading…
Reference in a new issue