Command: gtext

Syntax

{<entity> = } gtext {<message> ... }

Description

Create a text graphic entity, or a series of points forming 3-D text.

Parameters

Switches

Notes

The gtext command should not be used for general 2-D annotation, for which the glabel command is available.

If the command has the form <entity> = gtext, an entity is always created.

If the command has no entity assignment, then an entity will be created only if the -op option is not used, or the command is not within another entity creation block, e.g. lines, polygon.

Examples

Create an unnamed single line gtext entity.

gtext 'Text (BL) justified', -j='bl'

Create a named gtext entity (two lines).

entity my_text = gtext 'Line 1','Line 2', -h=50

Store gtext points into an array (no entity created).

point textps[ ]
gtext 'A', -op=textps, -ts=stdtext, -h=1

Add text vectors to a route of polygon entities under creation.

route n:1000 {
    gtext 'MARLON BRANDO', -h=50, -x=e, -y=u
}

See Also

Commands:

glabel, entity, gstructure, point

Identifiers:

def_fragment (numeric), def_rank (numeric), def_text_height (numeric), def_text_just (string), def_ts (textstyle)

Structures:

entity (gtext)