home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / maj / 4401 / exc.arj / FGDOC / EXAMPLES / C / 07-10.C < prev    next >
Text File  |  1994-01-24  |  1KB  |  45 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int old_mode;
  8.  
  9.    old_mode = fg_getmode();
  10.    fg_setmode(16);
  11.    fg_initw();
  12.    fg_setworld(0.0,6.39,0.0,3.49);
  13.    fg_setsizew(0.21);
  14.  
  15.    fg_setcolor(15);
  16.    fg_locate(0,26);
  17.    fg_text("Software characters - font 1",28);
  18.  
  19.    fg_setcolor(10);
  20.    fg_movew(0.0,3.1);
  21.    fg_swchar("ABCDEFGHIJKLMNOPQRSTUVWXYZ",26,-1);
  22.    fg_movew(0.0,2.8);
  23.    fg_swchar("abcdefghijklmnopqrstuvwxyz",26,-1);
  24.    fg_movew(0.0,2.5);
  25.    fg_swchar("0123456789",10,-1);
  26.    fg_movew(0.0,2.2);
  27.    fg_swchar("!\"#$%&'()*+,-./:;<=>?[]^`{|}~",29,-1);
  28.  
  29.    fg_setcolor(15);
  30.    fg_locate(12,26);
  31.    fg_text("Software characters - font 2",28);
  32.  
  33.    fg_setcolor(10);
  34.    fg_movew(0.0,1.4);
  35.    fg_swchar("\\ABCDEFGHIJKLMNOPRSTUWXYZ",25,-1);
  36.    fg_movew(0.0,1.1);
  37.    fg_swchar("\\abcdefghijklmnoprstuwxyz",25,-1);
  38.    fg_movew(0.0,0.4);
  39.    fg_swchar("\\012345678#$%&()*+/<=>?[]{}",27,-1);
  40.    fg_waitkey();
  41.  
  42.    fg_setmode(old_mode);
  43.    fg_reset();
  44. }
  45.