[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference

SET TEXT ALIGNMENT (PHOP,*,STOP,*)

Purpose

Use Set Text Alignment to insert a Set Text Alignment structure element into the open structure following the element pointer or replace the element pointed at by the element pointer with a Set Text Alignment structure element, depending on the current edit mode.

At structure traversal time, the graPHIGS API uses the specified alignment in this structure element to render all subsequent geometric text primitives. This setting affects the manner in which the graPHIGS API positions the geometric text extent rectangle in relation to the text position.

The traversal default for geometric text horizontal and vertical alignment is NORMAL.

If the workstation does not support the specified text alignment or the specified value is outside the allowable range, then the text alignment defaults to NORMAL for both horizontal and vertical text alignment.

Language Bindings

C

pset_text_align (text_align)

Input Parameters

const Ptext_align *text_align
Text alignment.

FORTRAN

PSTXAL (txalh, txalv)

Input Parameters

integer txalh
Horizontal text alignment (0=PAHNOR, 1=PALEFT, 2=PACENT, 3=PARITE).

integer txalv
Vertical text alignment (0=PAVNOR, 1=PATOP, 2=PACAP, 3=PAHALF, 4=PABASE, 5=PABOTT).

Errors

5
Function Requires State (PHOP,*,STOP,*)

Related Subroutines

  • Set Text Precision


  • [ Previous | Next | Contents | Glossary | Home | Search ]