home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
msysjour
/
vol04
/
02a
/
vectfont
/
vf08.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-11-29
|
884b
|
29 lines
/*-----------------------
VF08.C -- Hollow font
-----------------------*/
#define INCL_GPI
#include <os2.h>
#include "vectfont.h"
VOID Display_Hollow (HPS hps, LONG cxClient, LONG cyClient)
{
static CHAR szText[] = "Hollow" ;
static LONG cbText = sizeof szText - 1 ;
POINTL ptl ;
CreateVectorFont (hps, LCID_MYFONT, "Tms Rmn Italic") ;
GpiSetCharSet (hps, LCID_MYFONT) ;
ScaleFontToBox (hps, cbText, szText, cxClient, cyClient) ;
QueryStartPointInTextBox (hps, cbText, szText, &ptl) ;
GpiBeginPath (hps, ID_PATH) ;
GpiCharStringAt (hps, &ptl, cbText, szText) ; // Text in path
GpiEndPath (hps) ;
GpiStrokePath (hps, ID_PATH, 0L) ; // Stroke path
GpiSetCharSet (hps, LCID_DEFAULT) ; // Clean up
GpiDeleteSetId (hps, LCID_MYFONT) ;
}