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