OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [MW_0_8_9PRE7/] [mw/] [src/] [drivers/] [nofont.c] - Rev 673

Go to most recent revision | Compare with Previous | Blame | View Log

/*
 * Copyright (c) 2000 Greg Haerr <greg@censoft.com>
 *
 * Screen Driver Utilities
 * 
 * Microwindows null font stub
 */
#include <stdio.h>
#include "device.h"
#include "genfont.h"
 
/* no compiled in fonts*/
 
static MWCFONT nullfont = {
	"", 0, 0, 0, 0, 0, NULL, NULL, NULL
};
 
/* handling routines for MWCOREFONT*/
static MWFONTPROCS fontprocs = {
	MWTF_ASCII,		/* routines expect ascii*/
	NULL,			/* getfontinfo*/
	NULL,			/* gettextsize*/
	NULL,			/* gettextbits*/
	NULL,			/* unloadfont*/
	NULL,			/* xxx_drawtext*/
	NULL,			/* setfontsize*/
	NULL,			/* setfontrotation*/
	NULL,			/* setfontattr*/
};
 
/* first font is default font if no match*/
MWCOREFONT gen_fonts[NUMBER_FONTS] = {
	{&fontprocs, 0, 0, 0, MWFONT_SYSTEM_VAR, &nullfont},
	{&fontprocs, 0, 0, 0, MWFONT_SYSTEM_VAR, &nullfont},
	{&fontprocs, 0, 0, 0, MWFONT_SYSTEM_VAR, &nullfont},
	{&fontprocs, 0, 0, 0, MWFONT_SYSTEM_VAR, &nullfont},
};
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.