Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ text_alignm(3G) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

text(3G)

text_alignment(3G)

NAME

text_alignment − set text line alignment relative to starting point of each line

SYNOPSIS

C Syntax:

void text_alignment(fildes,h_select,v_select,horizontal,
vertical);
int fildes,h_select,v_select;
float horizontal,vertical;

FORTRAN77 Syntax:

subroutine text_alignment(fildes,h_select,
v_select,horizontal,vertical)
integer*4 fildes,h_select,v_select
real horizontal,vertical

Pascal Syntax:

procedure text_alignment(fildes,h_select,v_select:integer;
horizontal,vertical:real);

DESCRIPTION

Input Parameters

fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened. 

h_select A value in:

TA_LEFT
TA_CENTER
TA_RIGHT
TA_CONTINUOUS_HORIZONTAL
TA_NORMAL_HORIZONTAL

v_select
A value in:

TA_TOP
TA_CAP
TA_HALF
TA_BASE
TA_BOTTOM
TA_CONTINUOUS_VERTICAL
TA_NORMAL_VERTICAL

horizontal
Fraction of the face of the text extent box which appears on the negative side
of the up vector. This value is only used with TA_CONTINUOUS_HORIZONTAL and can
be any real value.

vertical
Fraction of the face of the text extent box which appears on the positive side
of the base vector. This value is only used with TA_CONTINUOUS_VERTICAL and can
be any real value.

Discussion

Text_alignment specifies the position of the text rectangle relative to the point specified in the text2d or text3d function.  If the h_select and/or the v_select parameter(s) is continuous, the text rectangle position is specified by the horizontal and/or vertical parameter(s).  The normal values depend on the character path at the time the text primitive is called:

path normal horizontal normal vertical
right left baseline
left right baseline
up center baseline
down center top

TA_CENTER is equivalent to TA_CONTINUOUS_HORIZONTAL and h_select = 0.5. 

TA_HALF is equivalent to TA_CONTINUOUS_VERTICAL and  v_select = 0.5. 

DEFAULTS

TA_NORMAL_HORIZONTAL and TA_NORMAL_VERTICAL. 

SEE ALSO

text(3G), Starbase Graphics Techniques. 

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026