72 SunCGI Reference Manual 1.0. 0 The character up vector and the character base vector influence the character path and the character alignment. For example, if xbase = -1.0 and the character path is RIGIIT, the text is written to the left . Errors ENOTOPOP (5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. ECHRUPVZ (50] Length of character up vector or character base vector is zero. Character Path Cerror character_path(path) Cpathtype path; /* text direction*/ character__path specifies the direction in which text is written. The enumerated type Cpa th type contains values that correspond to valid character paths.
typedef enum RIGHT, LEFT, UP, DOWN Cpathtype; The actual effect of character__path depends on the character up vector o, and the character base vector. RIGIIT specifies that the text is written in the direction of the character base vector. For example, if the direction of the char- acter base vector points left instead of right (xup -1.0 instead of 1.0), the text will be written right-to-left instead of left-to-right which is the usual interpreta- tion of RIGIIT. LEFT specifies that the text is written in the opposite direction of the character base vector. The character up vector and character base vector essentially change functions when the character direction is set to UP or DOWN.
UP specifies that the text is written in the direction of the character up vector . DOWN specifies that the text is written in the opposite direction of the character up vector. The default character path is RIGIIT. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. Text Alignment Cerror text_aligrunent(halign, valign, hcalind, vcalind) Chaligntype halign; /* horizontal aligrunent type*/ Cvaligntype valign; /* vertical aligrunent type*/ Cfloat hcalind, vcalind; /* continuous alignment indicators*/ text_ aligrunent determines where the text is positioned relative to the start- ing point specified by the cl argument of the text or vdm_text function.
halign determines where the character is placed in relation to the x component of the starting coordinate of the text position (specified by the cl argument of O text). The enumerated type Chaligntype contains values that correspond to Version C of 17 March 1986