•  Back 
  •  VDI FSMGDOS 
  •  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-Filevqt_width()
vqt_extent()
vqt_f_extent()
vqt_advance()                                                           VDI

Syntax

VOID vqt_advance( handle, wch, advx, advy, xrem, yrem )
WORD handle, wch;
WORD *advx, *advy, *xrem, *yrem;

Function      vqt_advance()  returns the advance vector and remainder for
              a character.

Opcode        247

Availability  Available only with FSMGDOS or SpeedoGDOS.

Parameters    handle specifies a valid workstation handle. wch contains
              the character which you desire information for. Upon return
              the WORDs pointed to by advx, advy, xrem, and yrem will be
              filled in with the correct advance vector and remainders.

Binding       contrl[0] = 247;
              contrl[1] = 0;
              contrl[3] = 1;
              contrl[6] = handle;

              intin[0] = wch;

              vdi();

              *advx = ptsout[0];
              *advy = ptsout[1];
              *xrem = ptsout[2];
              *yrem = ptsout[3];

Comments      advx and advy, when added to the position where the
              character was rendered will indicate the position to draw
              the next character. This advance vector works in all
              directions with all character rotations. xrem and yrem give
              the remainder value as a modulus of 16384. These remainders
              should be summed by an application an managed to nudge the
              advance vector by a pixel when necessary.

See Also      vqt_width(), vqt_extent(), vqt_f_extent()

Group         VDI FSMGDOS