1 /*-----------------------------------------------------------------------
\r
3 ; XTEXT - header file
\r
7 ; ****** XLIB - Mode X graphics library ****************
\r
8 ; ****** ****************
\r
9 ; ****** Written By Themie Gouthas ****************
\r
11 ; egg@dstos3.dsto.gov.au
\r
12 ; teg@bart.dsto.gov.au
\r
14 ; Terminology & notes:
\r
16 ; SRAM == System RAM
\r
17 ; X coordinates are in pixels unless explicitly stated
\r
19 ;-----------------------------------------------------------------------*/
\r
29 /* FUNCTIONS =========================================================== */
\r
35 WORD x_text_init(void); /* Initialize text functionns */
\r
38 WORD FontId); /* Set the font style */
\r
40 void x_register_userfont( /* register a user defined font */
\r
41 char far *UserFontPtr);
\r
43 unsigned int x_char_put( /* Draw a text character using */
\r
44 char ch, /* the currently active font */
\r
51 unsigned int x_get_char_width( /* Get the character width */
\r
55 /* the folowing function is from xprintf.c but is included due to its */
\r
56 /* close relationship with this module */
\r
58 void x_printf( /* formatted text output */
\r
65 void x_bgprintf( /* formatted text output */
\r
78 /* VARIABLES =========================================================== */
\r
80 extern BYTE CharHeight; /* Char height of currently active font */
\r
81 extern BYTE CharWidth; /* Char width of currently active font */
\r
82 extern BYTE FirstChar; /* First char in the curr. active font */
\r
84 extern BYTE UserCharHeight; /* Char height of currentle regist'd user font */
\r
85 extern BYTE UserCharWidth; /* Char height of currentle regist'd user font */
\r
86 extern BYTE UserFirstChar; /* First char of the curr. regist'd usera font */
\r