home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / S12219.ZIP / VF08.C < prev    next >
C/C++ Source or Header  |  1988-11-29  |  884b  |  29 lines

  1. /*-----------------------
  2.    VF08.C -- Hollow font
  3.   -----------------------*/
  4.  
  5. #define INCL_GPI
  6. #include <os2.h>
  7. #include "vectfont.h"
  8.  
  9. VOID Display_Hollow (HPS hps, LONG cxClient, LONG cyClient)
  10.      {
  11.      static CHAR szText[] = "Hollow" ;
  12.      static LONG cbText = sizeof szText - 1 ;
  13.      POINTL      ptl ;
  14.  
  15.      CreateVectorFont (hps, LCID_MYFONT, "Tms Rmn Italic") ;
  16.      GpiSetCharSet (hps, LCID_MYFONT) ;
  17.      ScaleFontToBox (hps, cbText, szText, cxClient, cyClient) ;
  18.      QueryStartPointInTextBox (hps, cbText, szText, &ptl) ;
  19.  
  20.      GpiBeginPath (hps, ID_PATH) ;
  21.      GpiCharStringAt (hps, &ptl, cbText, szText) ;     // Text in path
  22.      GpiEndPath (hps) ;
  23.  
  24.      GpiStrokePath (hps, ID_PATH, 0L) ;                // Stroke path
  25.  
  26.      GpiSetCharSet (hps, LCID_DEFAULT) ;               // Clean up
  27.      GpiDeleteSetId (hps, LCID_MYFONT) ;
  28.      }
  29.