#ifndef lint static char sccsid[] = "@(#)prntfamily.c 9.2 88/01/19 Copyright 1985 Sun Micro"; #endif /* * Copyright (c) 1985 by Sun Microsystems, Inc. */ /*- Print information about a font family prntfamily.c, Tue Dec 3 15:46:33 1985 James Gosling, Sun Microsystems */ #include #include "fontcache.h" printfamily(f,level) register struct fontfamily *f; { register i; register struct cachedfont *ft; if (f->m.magic != FONTFAMILYMAGIC) { printf ("Bad magic\n"); return; } printf("Family %s in %s\n", f->FamilyName, f->directory); if (f->printermatched) printf(" Printer matching information available (%s)\n", f->printermatched->font.name); if (level>1) { register struct cachedfont *fl = 0; for (i = 0; i < FONTTABLESIZE; i++) if ((ft = f->table[i])!=0 && ft != fl) printf("%3d: %s\n", i, ft->font.name), fl = ft; } if (level>2) { for (i = 0; i < FONTHASHSIZE; i++) for (ft = f->hash[i]; ft; ft = ft->next) printf("%3d* %s (%d)\n", i, ft->font.name, ft->hash); } }