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

 
Output of file : VF11.C contained in archive : VECTFONT.ZIP
/*-----------------------------------------------------
VF11.C -- Neon font using geometrically-thick lines
-----------------------------------------------------*/

#define INCL_GPI
#include
#include "vectfont.h"

VOID Display_Neon (HPS hps, LONG cxClient, LONG cyClient)
{
static CHAR szText[] = " Neon " ;
static LONG cbText = sizeof szText - 1 ;
static LONG lForeColor[] = { CLR_DARKRED, CLR_DARKRED, CLR_RED,
CLR_RED, CLR_WHITE, CLR_WHITE };
static LONG lBackColor[] = { CLR_BLACK, CLR_DARKRED, CLR_DARKRED,
CLR_RED, CLR_RED, CLR_WHITE };
static LONG lWidth[] = { 34, 28, 22, 16, 10, 4 } ;

INT iIndex ;
POINTL ptl ;

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

ColorClient (hps, cxClient, cyClient, CLR_BLACK) ;

for (iIndex = 0 ; iIndex < 6 ; iIndex++)
{
GpiBeginPath (hps, ID_PATH) ;
GpiCharStringAt (hps, &ptl, cbText, szText) ; // Text out
GpiEndPath (hps) ;

GpiSetColor (hps, lForeColor[iIndex]) ;
GpiSetBackColor (hps, lBackColor[iIndex]) ;
GpiSetBackMix (hps, BM_OVERPAINT) ;
GpiSetPattern (hps, PATSYM_HALFTONE) ;
GpiSetLineWidthGeom (hps, lWidth[iIndex]) ;

GpiStrokePath (hps, ID_PATH, 0L) ; // Stroke path
}
GpiSetCharSet (hps, LCID_DEFAULT) ; // Clean up
GpiDeleteSetId (hps, LCID_MYFONT) ;
}


  3 Responses to “Category : OS/2 Files
Archive   : VECTFONT.ZIP
Filename : VF11.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: http://www.os2museum.com/wp/mtswslnk/