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