1 /* 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This software was developed by the Computer Systems Engineering group 6 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7 * contributed to Berkeley. 8 * 9 * All advertising materials mentioning features or use of this software 10 * must display the following acknowledgement: 11 * This product includes software developed by the University of 12 * California, Lawrence Berkeley Laboratories. 13 * 14 * %sccs.include.redist.c% 15 * 16 * @(#)rcons_font.c 7.2 (Berkeley) 07/21/92 17 * 18 * from: $Header: rcons_font.c,v 1.8 92/06/17 06:23:37 torek Exp $ 19 */ 20 21 #ifdef KERNEL 22 #include "sys/param.h" 23 #include "sys/kernel.h" 24 #include "sys/fbio.h" 25 #include "sys/device.h" 26 #include "machine/fbvar.h" 27 #else 28 #include <sys/types.h> 29 #include "myfbdevice.h" 30 #endif 31 32 #include "raster.h" 33 34 #include "gallant19.h" 35 36 void 37 rcons_font(fb) 38 register struct fbdevice *fb; 39 { 40 41 /* XXX really rather get this from the prom */ 42 fb->fb_font = &gallant19; 43 44 /* Get distance to top and bottom of font from font origin */ 45 fb->fb_font_ascent = -(fb->fb_font->chars)['a'].homey; 46 } 47