home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MegaDoom Adventures
/
PMWMEGADOOM.iso
/
doom
/
creators
/
deu52gcc
/
src
/
contrib
/
bcc2grx
/
chr
/
test.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-20
|
489b
|
29 lines
/*
*
* Borland gives one the right to
* ship copies of the .chr and .bgi
* files with a graphics program.
*
* So here it is ...
*
*/
#include <graphics.h>
void main(void)
{
int gd, gm, i;
gd = DETECT;
initgraph(&gd, &gm, "");
moveto(5, 5);
for (i=DEFAULT_FONT; i <= BOLD_FONT; ++i) {
settextstyle( i, HORIZ_DIR, (i==2 ? 6 : 2));
outtext( "Hello world !");
moveto(5, gety()+textheight( "H")+5);
}
getch();
closegraph();
}