home *** CD-ROM | disk | FTP | other *** search
/ MegaDoom Adventures / PMWMEGADOOM.iso / doom / creators / deu52gcc / src / contrib / bcc2grx / chr / test.c < prev    next >
C/C++ Source or Header  |  1993-04-20  |  489b  |  29 lines

  1. /*
  2.  *
  3.  * Borland gives one the right to
  4.  * ship copies of the .chr and .bgi
  5.  * files with a graphics program.
  6.  *
  7.  * So here it is ...
  8.  *
  9.  */
  10.  
  11. #include <graphics.h>
  12.  
  13. void main(void)
  14. {
  15.   int gd, gm, i;
  16.  
  17.   gd = DETECT;
  18.   initgraph(&gd, &gm, "");
  19.   moveto(5, 5);
  20.   for (i=DEFAULT_FONT; i <= BOLD_FONT; ++i) {
  21.     settextstyle( i, HORIZ_DIR, (i==2 ? 6 : 2));
  22.     outtext( "Hello world !");
  23.     moveto(5, gety()+textheight( "H")+5);
  24.   }
  25.   getch();
  26.   closegraph();
  27. }
  28.  
  29.