•  Back 
  •  VDI SpeedoGDOS 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filevst_setsize()
vst_arbpt()
vst_setsize32()                                                         VDI

Syntax

fix31 vst_setsize( handle, point, wchar, hchar, wcell, hcell )
WORD handle;
fix31 point;
WORD *wchar, *hchar, *wcell, *hcell;

Function      vst_setsize() sets the width of outline characters as
              a fix31 fractional value.

Opcode        252

Availability  Available only with SpeedoGDOS.

Parameters    handle specifies a vaid workstation handle. point specifies
              the width of the character in points (1/72 inch). A value
              for point equivalent to the same point size specified in
              vst_arbpt() will result in a correctly proportioned
              character. Upon return, the WORDs pointed to by wchar, hchar,
              wcell, and hcell will be filled in with the width and height
              of the character and the width and height of the character
              cell respectively.

Binding       contrl[0] = 252;
              contrl[1] = 0;
              contrl[3] = 2;
              contrl[6] = handle;

              intin[0] = (WORD)(point >> 8);
              intin[1] = (WORD)point;

              vdi();

              *wchar = ptsout[0];
              *hchar = ptsout[1];
              *wcell = ptsout[2];
              *hcell = ptsout[3];

              return ((fix31)intout[0] << 16) | (fix31)intout[1];

Return Value  vst_setsize32() returns the size actually set.

Comments      This call only works with outline fonts. At the next
              vst_point(), vst_height(), or vst_arbpt() the size will be
              reset to the correct proportions (width in points = height
              in points).

See Also      vst_setsize(), vst_arbpt()

Group         VDI SpeedoGDOS