6 allocsubfont(char *name, int n, int height, int ascent, Fontchar *info, Image *i)
10 assert(height != 0 /* allocsubfont */);
12 f = malloc(sizeof(Subfont));
15 fprint(2, "allocsubfont %p\n", f);
24 * if already caching this subfont, leave older
25 * (and hopefully more widely used) copy in cache.
26 * this case should not happen -- we got called
27 * because cachechars needed this subfont and it
28 * wasn't in the cache.
30 f->name = strdup(name);
31 if((cf=lookupsubfont(i->display, name)) == 0)
32 installsubfont(name, f);
34 freesubfont(cf); /* drop ref we just picked up */