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