6 * Default version: treat as file name
10 _getsubfont(Display *d, char *name)
15 fd = open(name, OREAD);
18 fprint(2, "getsubfont: can't open %s: %r\n", name);
22 * unlock display so i/o happens with display released, unless
23 * user is doing his own locking, in which case this could break things.
24 * _getsubfont is called only from string.c and stringwidth.c,
25 * which are known to be safe to have this done.
27 if(d && d->locking == 0)
29 f = readsubfont(d, name, fd, d && d->locking==0);
30 if(d && d->locking == 0)
33 fprint(2, "getsubfont: can't read %s: %r\n", name);