elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
unused
/
nano-X
/
drivers
/
romfont.h
File editor
/* * 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*/ #define GETROM8x8 0x0300 /* want address of ROM 8x8 char table*/ #define GETROM8x8_2 0x0400 /* want address of ROM 8x8 (2nd half) char table*/ #define GETROM9x14 0x0500 /* want address of ROM 9x14 alternate char table*/ #define GETROM8x16 0x0600 /* want address of ROM 8x16 (VGA) char table*/ #define GETROM8x16_2 0x0700 /* want address of ROM 8x16 alternate (VGA) char table*/ /* entry points*/ void pcrom_init(PSD psd); BOOL pcrom_getfontinfo(PSD psd,FONTID fontid,PFONTINFO pfontinfo); void pcrom_gettextsize(PSD psd,const UCHAR *str,int cc,COORD *retwd, COORD *retht,FONTID fontid); void pcrom_gettextbits(PSD psd,UCHAR ch,IMAGEBITS *retmap,COORD *retwd, COORD *retht,FONTID fontid); /* local data*/ extern int ROM_CHAR_HEIGHT; /* number of scan lines in fonts in ROM */ extern FARADDR rom_char_addr; /* the following aren't used yet*/ void pcrom_drawtext(PSD psd,COORD x,COORD y,const UCHAR *s,int n,PIXELVAL fg, FONTID fontid); void gen_drawbitmap(PSD psd,COORD x,COORD y,COORD width,COORD height, IMAGEBITS *table, PIXELVAL fgcolor);
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history