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

 
Output of file : VF04.C contained in archive : VECTFONT.ZIP
/*------------------------------------------
VF04.C -- Display eight character angles
------------------------------------------*/

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

VOID Display_CharAngle (HPS hps, LONG cxClient, LONG cyClient)
{
static GRADIENTL agradl[8] = { 100, 0, 100, 100,
0, 100, -100, 100,
-100, 0, -100, -100,
0, -100, 100, -100 } ;
CHAR szBuffer[40] ;
INT iIndex ;
POINTL ptl ;

// Create Helvetica font

CreateVectorFont (hps, LCID_MYFONT, "Helv") ;
GpiSetCharSet (hps, LCID_MYFONT) ;
ScaleVectorFont (hps, 200, 200) ;

ptl.x = cxClient / 2 ; // Center of client window
ptl.y = cyClient / 2 ;

for (iIndex = 0 ; iIndex < 8 ; iIndex++)
{
GpiSetCharAngle (hps, agradl + iIndex) ; // Char angle

GpiCharStringAt (hps, &ptl,
(LONG) sprintf (szBuffer, " Character Angle (%ld,%ld)",
agradl[iIndex].x, agradl[iIndex].y),
szBuffer) ;
}
GpiSetCharSet (hps, LCID_DEFAULT) ; // Clean up
GpiDeleteSetId (hps, LCID_MYFONT) ;
}


  3 Responses to “Category : OS/2 Files
Archive   : VECTFONT.ZIP
Filename : VF04.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/