68 SunCGI Reference Manual Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. 0 Perimeter Color Cerror perirneter_color(index) Cint index; /* perimeter color*/ perimeter_color determines the color of the perimeters. index selects an entry in the color lookup table. The default value of index is I. An error is detected if index is not between O and 255. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. EBTBUNDL [30] ASF is BUNDLED. ECINDXLZ [35] Color index is less than zero. EBADCOLX [36] Color index is invalid. 4.8.
Text Attributes SunCGI provides a variety of functions for determining how text is written to the screen. The most important text attribute is text precision . If text precision is set to STRING, firmware characters are used. The fonts, size, spacing, and alignment of firmware are more limited than characters drawn with text preci- sion set to a value other than STRING. Therefore, calls to text attribute functions regulating these aspects of text drawing have no effect when text precision is set to STRING. 0 Text Bundle Index Cerror text_bundle_index(index) Cint index; /* text bundle index*/ text_ bundle_ index sets the current text bundle index to the value of index.
The contents of the text bundle index are text font text precision , character expansion factor, character spacing, and text color. The character height character orientation character path text alignment and fixed font are not included in the definition of the text bundle. If index is not defined, an error is generated, and the text bundle index does not change. If the ASF' s for any of these attributes are set to BUNDLED, the current values of these attributes are set to the contents of the bundle. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. EBADTXTX [45] Text index is invalid.
Text Precision Cerror text_precision(ttyp) Cprectype ttyp; /* text type*/ text_precision controls the precision with which text is displayed. The enumerated type Cprectype contains values that correspond to valid text pre- cisions. 0 Version C of 17 March 1986