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

 
Output of file : VF03.C contained in archive : VECTFONT.ZIP
/*------------------------------------------------------
VF03.C -- Display four strings in mirror reflections
------------------------------------------------------*/

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

VOID Display_Mirror (HPS hps, LONG cxClient, LONG cyClient)
{
static CHAR szText[] = "Mirror" ;
static LONG cbText = sizeof szText - 1 ;
INT i ;
POINTL ptl ;
SIZEF sizfx ;
// Create font, select and scale

CreateVectorFont (hps, LCID_MYFONT, "Tms Rmn Italic") ;
GpiSetCharSet (hps, LCID_MYFONT) ;
ScaleFontToBox (hps, cbText, szText, cxClient / 2, cyClient / 2) ;

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

for (i = 0 ; i < 4 ; i++)
{
GpiQueryCharBox (hps, &sizfx) ;

if (i == 1 || i == 3)
sizfx.cx *= -1 ;
// Negate char box dimensions
if (i == 2)
sizfx.cy *= -1 ;

GpiSetCharBox (hps, &sizfx) ;

GpiCharStringAt (hps, &ptl, cbText, szText) ;
}
GpiSetCharSet (hps, LCID_DEFAULT) ; // Clean up
GpiDeleteSetId (hps, LCID_MYFONT) ;

}


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