home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / gwin_433.lzh / Gwin / exsrc.lzh / text.c < prev    next >
C/C++ Source or Header  |  1991-01-12  |  1KB  |  44 lines

  1. /*******************************************************/
  2. /*                                                     */
  3. /* GRAPHICS  MAIN                                      */
  4. /*                                                     */
  5. /*******************************************************/
  6. main()
  7. {
  8. float x,y;
  9.    ustart("low1",0.,320.,0.,200.);
  10.  
  11. /* This shows how you would retrieve a font from some other disk.     */
  12. /* This font set is on fish 202.   I have tested this and it works.   */
  13. /* It is commented out here since fish 202 is probably not in your    */
  14. /* df1: drive right now. -- Right?                                    */
  15. /* ufont("df1:SlavicFonts/cyrillic/moskva.font",11.0); */
  16.  
  17.    ufont("garnet.font",16.0);
  18.    upset("fsty",1.0);
  19.    uprint(10.,90.,"garnet.font underlined");
  20.  
  21.    ufont("topaz.font",11.0);
  22.    upset("fsty",0.0);
  23.    uprint(10.,80.,"topaz.font  ");
  24.  
  25.    upset("fsty",1.0);
  26.    uprnt1("text","line continuation...");
  27.  
  28.    upset("fsty",0.0);
  29.    umove(10.,30.);
  30.    uprnt1("inte",25.0);
  31.    uprnt1("text","   ");
  32.    uprnt1("real",25.0);
  33.    uprnt1("text"," ");
  34.  
  35.    upset("fsty",3.0);
  36.    uprnt1("text","BOLD & underlined.");
  37.  
  38.    ugrin(&x,&y);
  39.  
  40.    uend();
  41.  
  42. }
  43.  
  44.