Skip to content

TextPath

textPath

A path or list of paths for area or path text. A path consists of path points that define its geometry.


textPath.area

The area of this path in square points. If the area is negative, the path is wound counterclockwise.

Self-intersecting paths can contain sub-areas that cancel each other out, which makes this value zero even though the path has apparent area.

Number (double); read-only.


textPath.blendingMode

The blend mode used when compositing an object.

BlendModes


textPath.clipping

If true, this path should be used as a clipping path.

Boolean


textPath.closed

If true, this path is closed.

Boolean


textPath.editable

Read-only. If true, this item is editable.

Boolean


textPath.evenodd

If true, the even-odd rule should be used to determine insideness.

Boolean


textPath.fillColor

The fill color of the path.

Color


textPath.filled

If true, the path be filled.

Boolean


textPath.fillOverprint

If true, the art beneath a filled object should be overprinted.

Boolean


textPath.guides

If true, this path is a guide object.

Boolean


textPath.height

The height of the group item.

Number (double)


textPath.left

The position of the left side of the item (in points, measured from the left side of the page).

Number (double)


textPath.note

The note text assigned to the path.

String


textPath.opacity

The opacity of the object.

Range: 0.0 to 100.0

Number (double)


textPath.parent

Read-only. The parent of this object.

Layer or GroupItem


textPath.pathPoints

Read-only. The path points contained in this path item.

PathPoints


textPath.polarity

The polarity of the path.

PolarityValues


textPath.position

The position (in points) of the top left corner of the textPathItem object in the format [x, y]. Does not include stroke weight.

Array of 2 numbers


textPath.resolution

The resolution of the path in dots per inch (dpi).

Number (double)


textPath.selectedPathPoints

Read-only. All of the selected path points in the path.

PathPoints


textPath.strokeCap

The type of line capping.

StrokeCap


textPath.strokeColor

The stroke color for the path.

Color


textPath.stroked

If true, the path should be stroked.

Boolean


textPath.strokeDashes

Dash lengths. Set to an empty object, {}, for a solid line.

Object


textPath.strokeDashOffset

The default distance into the dash pattern at which the pattern should be started.

Number (double)


textPath.strokeJoin

Type of joints for the path.

StrokeJoin


textPath.strokeMiterLimit

When a default stroke join is set to mitered, this property specifies when the join will be converted to beveled (squared-off) by default. The default miter limit of 4 means that when the length of the point reaches four times the stroke weight, the join switches from a miter join to a bevel join. A value of 1 specifies a bevel join.

Range: 1 to 500.

Default: 4

Number (double)


textPath.strokeOverprint

If true, the art beneath a stroked object should be overprinted.

Boolean


textPath.strokeWidth

Width of the stroke.

Number (double)


textPath.top

The position of the top of the item (in points, measured from the bottom of the page).

Number (double)


textPath.typename

Read-only. The class name of the referenced object.

String


textPath.width

The width of the item.

Number (double)


textPath.setEntirePath(pathPoints)

Sets the path using the array of points specified as [x, y] coordinate pairs.

ParameterTypeDescription
pathPointsArray of [x, y] coordinate pairsPath points to set path as

Nothing.