1 /* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. 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 Laboratory. 13 * 14 * %sccs.include.redist.c% 15 * 16 * @(#)rcons_font.c 8.1 (Berkeley) 06/11/93 17 * 18 * from: $Header: rcons_font.c,v 1.10 93/04/20 11:15:38 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 <sparc/rcons/raster.h> 33 34 #include <sparc/rcons/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