Category : OS/2 Files
Archive   : VECTFONT.ZIP
Filename : VF02.C

Output of file : VF02.C contained in archive : VECTFONT.ZIP
VF02.C -- Display vector font stretched to client window

#define INCL_GPI
#include "vectfont.h"

VOID Display_Stretch (HPS hps, LONG cxClient, LONG cyClient)
static CHAR szText[] = "Hello!" ;
static LONG cbText = sizeof szText - 1 ;
POINTL ptl ;

// Create font, select, and scale

CreateVectorFont (hps, LCID_MYFONT, "Tms Rmn Italic") ;
GpiSetCharSet (hps, LCID_MYFONT) ;
ScaleFontToBox (hps, cbText, szText, cxClient, cyClient) ;
QueryStartPointInTextBox (hps, cbText, szText, &ptl) ;

GpiCharStringAt (hps, &ptl, cbText, szText) ; // Display text

GpiSetCharSet (hps, LCID_DEFAULT) ; // Clean up
GpiDeleteSetId (hps, LCID_MYFONT) ;

  3 Responses to “Category : OS/2 Files
Archive   : VECTFONT.ZIP
Filename : VF02.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: