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

 
Output of file : VF06.C contained in archive : VECTFONT.ZIP
/*----------------------------------------------------------
VF06.C -- Display seven different character shear angles
----------------------------------------------------------*/

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

VOID Display_CharShear (HPS hps, LONG cxClient, LONG cyClient)
{
static POINTL aptlShear[7] = { -100, 41, -100, 100,
-41, 100, 0, 100,
41, 100, 100, 100,
100, 41 } ;
CHAR szBuffer[40] ;
FONTMETRICS fm ;
INT iIndex ;
POINTL ptl ;

// Create and scale Helvetica font

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

// Get font metrics for scaled font

GpiQueryFontMetrics (hps, (LONG) sizeof (FONTMETRICS), &fm) ;

ptl.x = cxClient / 8 ;
ptl.y = cyClient ;

for (iIndex = 0 ; iIndex < 7 ; iIndex++)
{
GpiSetCharShear (hps, aptlShear + iIndex) ; // Char shear

ptl.y -= fm.lMaxBaselineExt ;

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


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