⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 romfont.h

📁 神龙卡开发原代码
💻 H
字号:
/* * Copyright (c) 1999 Greg Haerr <greg@censoft.com> * * Screen Driver Utilities * * PC ROM Font Routine Header (PC ROM font format) * * These routines are screen driver entry points. *//* compiled in fonts*/#define NUMBER_FONTS	1	/* rom font only for now*/#define	ROM_CHAR_WIDTH	8	/* number of pixels for character width */#define MAX_ROM_HEIGHT	16	/* max rom character height*/#define	FONT_CHARS	256	/* number of characters in font tables *//* int10 functions*/#define FNGETROMADDR	0x1130	/* function for address of rom character table*/#define GETROM8x14	0x0200	/* want address of ROM 8x14 char table*//* entry points*/void	pcrom_init(PSD psd);MWBOOL	pcrom_getfontinfo(PMWFONT pfont,PMWFONTINFO pfontinfo);void	pcrom_gettextsize(PMWFONT pfont, const void *text, int cc,		MWCOORD *pwidth, MWCOORD *pheight, MWCOORD *pbase);void	pcrom_gettextbits(PMWFONT pfont, int ch, MWIMAGEBITS *retmap,		MWCOORD *pwidth, MWCOORD *pheight, MWCOORD *pbase);void	pcrom_unloadfont(PMWFONT pfont);void	corefont_drawtext(PMWFONT pfont, PSD psd, MWCOORD x, MWCOORD y,		const void *text, int cc, int flags);/* local data*/extern int	ROM_CHAR_HEIGHT; /* number of scan lines in fonts in ROM */extern FARADDR 	rom_char_addr;extern MWCOREFONT pcrom_fonts[NUMBER_FONTS];/* the following aren't used yet*/void	pcrom_drawtext(PMWFONT pfont, PSD psd, MWCOORD x, MWCOORD y,		const void *text, int n, MWPIXELVAL fg);void 	gen_drawbitmap(PSD psd,MWCOORD x,MWCOORD y,MWCOORD width,MWCOORD height,		MWIMAGEBITS *table, MWPIXELVAL fgcolor);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -