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

Chapter 4 - Attributes 71 0 The default character height is 1000. Titis may result in huge characters if VDC space is reset from its default range (0-32767). If the x and y dimensions of VDC space are different, the height is calculated on the basis of the range of the x coordinate of VDC space. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. EBTBUNDL [30] ASF is BUNDLED. ECHHTLEZ [49] Character height is less than or equal to zero. Fixed Font (SunCGI Extension) Cerror fixed_font(flag) Cint flag; /* fixed or variable width characters*/ fixed font allows characters to be of fixed or variable size. lfjlag is nonzero-:

the characters are of uniform size, otherwise the characters are packed proponional to their actual sizes. If the character precision is STRING, this func- tion has no effect By default SunCGI supports variable width characters. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. 0 Text Color Cerror text_color(index) Cint index; /*color*/ text_color determines the color of the text index selects an entry in the color lookup table. The default value of index is 1. 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. ASF is BUNDLED.

EBTBUNDL [30] Color index is less than zero. ECINDXLZ [35] EBADCOLX [36] Color index is invalid. Character Orientation Cerror character_orientation(xbase, ybase, xup, yup) Cfloat xbase, ybase, xup, yup; /* character base and up vectors*/ character_orientation specifies the skew and direction of text The left side of the character box lies on an invisible line called the character up vector whose slope is determined by xup and yup. 'The bottom of the character box lies on an invisible line called the character base uctor whose slope is determined by xbase and ybase. If the character up vector and the character base vector are not orthogonal, the text is distorted.

Calls to character_orientation have no effect if text precision is set to STRING. The default values for the character up vector and the character base vector are xbase - 1.0, ybase - 0.0, xup = 0.0, and yup = 0 Version C of 17 March 1986