Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

Chapter 3 -Output 43 0 4.8. Control characters are displayed as blanks, except in the SYMBOL font where they may be drawn as pictures of bugs. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. VDMText Cerror vdm_text(cl, flag, tstring) Ccoor *cl; /* starting point of text (in VDC space) */ Ctextfinal flag; /* final text for alignment*/ Cchar •tstring; /*text*/ vdm _ text displays the text contained in tstring at point cl (expressed in VDC space).

The intended difference between text and vdm_text is that vdm_ text allows control characters; however, Sun CG I does not handle control characters so text drawn with vdm _ text will appear identical to text drawn with the text function. If the flag argument is equal to FINAL, the previous text and the appended text are aligned separately. However, if the flag argument is equal to NOT_FINAL, the appended and previous text are aligned together. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC.

Append Text Cerror append_text(flag~ tstring) Ctextfinal flag; /* final text for alignment*/ Cchar *tstring; /*text*/ 0 append text displays the text contained in tstring after the end of the most recently written text. The type of text written depends on the same attributes which control the display of texL The flag argument determines whether the appended text is aligned with the previous text if the alignment is CONTINUOUS. If the flag argument is equal to FINAL, then the previous text and the appended text are aligned separately. However, if the flag argument is equal to NOT_FINAL, the appended and previous text are aligned together. Errors ENOTVSAC [4] CGI not in proper state:

CGI shall be in state VSAC. Inquire Text Extent Cerror inquire_text_extent(tstring, nextchar, concat, lleft, uleft, uright) Cchar *tstring; /*text*/ Cchar nextchar; /* next character (for kerning) */ Ccoor *concat; I* concatenation point*/ Ccoor *lleft, *uleft, *uright; /* coordinates of text bounding box*/ inquire_text_extent determines how large text tstring would be and where it would be placed if it were drawn using the current text attributes.

The nextchar parameter is used to determine the point where text would start if more text (starting with ne:ctchar) were appended to the text specified by tstring .10 If nextchar equals 'single space ', the last point of the current character is used. The argument concat returns the coordinates of the point where appended text 0 10 This is a method for accounting for proportional spacing. Version C of 17 March 1986