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 * %sccs.include.redist.c% 10 * 11 * @(#)rcons_font.c 7.1 (Berkeley) 07/13/92 12 * 13 * from: $Header: rcons_font.c,v 1.8 92/06/17 06:23:37 torek Exp $ 14 */ 15 16 #ifdef KERNEL 17 #include "sys/param.h" 18 #include "sys/kernel.h" 19 #include "sys/fbio.h" 20 #include "sys/device.h" 21 #include "machine/fbvar.h" 22 #else 23 #include <sys/types.h> 24 #include "myfbdevice.h" 25 #endif 26 27 #include "raster.h" 28 29 #include "gallant19.h" 30 31 void 32 rcons_font(fb) 33 register struct fbdevice *fb; 34 { 35 36 /* XXX really rather get this from the prom */ 37 fb->fb_font = &gallant19; 38 39 /* Get distance to top and bottom of font from font origin */ 40 fb->fb_font_ascent = -(fb->fb_font->chars)['a'].homey; 41 } 42