|
|
1.1 root 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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.