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_extent()
vqt_width()
vqt_advance()
vqt_f_extent() VDI
Syntax
VOID vqt_f_extent( handle, str, pts )
WORD handle;
char *str;
WORD *pts;
Function vqt_f_extent() returns the bounding box required to enclose
the specified string of text.
Opcode 240
Availability Available only with SpeedoGDOS.
Parameters Same as vqt_extent().
Binding WORD i = 0;
while(intin[i++] = (WORD)*str++);
contrl[0] = 240;
contrl[1] = 0;
contrl[3] = --i;
contrl[6] = handle;
vdi();
pts[0] = ptsout[0];
pts[1] = ptsout[1];
pts[2] = ptsout[2];
pts[3] = ptsout[3];
pts[4] = ptsout[4];
pts[5] = ptsout[5];
pts[6] = ptsout[6];
pts[7] = ptsout[7];
Comments As opposed to vqt_extent(), vqt_f_extent() calculates the
remainders generated by outline fonts therefore providing
more accurate results.
See Also vqt_extent(), vqt_width(), vqt_advance()
Group VDI FSMGDOS