TextPath
TextPath
Section titled “TextPath”textPath
用于区域或路径文本的路径或路径列表。路径由定义其几何形状的路径点组成。
TextPath.area
Section titled “TextPath.area”textPath.area
路径的面积,单位为平方点。如果面积为负,则路径是逆时针方向的。
自相交路径可能包含相互抵消的子区域,这使得即使路径有明显的面积,此值也可能为零。
数字(双精度);只读。
TextPath.blendingMode
Section titled “TextPath.blendingMode”textPath.blendingMode
合成对象时使用的混合模式。
TextPath.clipping
Section titled “TextPath.clipping”textPath.clipping
如果为 true,则此路径应作为剪贴路径使用。
布尔值
TextPath.closed
Section titled “TextPath.closed”textPath.closed
如果为 true,则此路径是闭合的。
布尔值
TextPath.editable
Section titled “TextPath.editable”textPath.editable
只读。如果为 true,则此项目可编辑。
布尔值
TextPath.evenodd
Section titled “TextPath.evenodd”textPath.evenodd
如果为 true,则应使用奇偶规则来确定内部。
布尔值
TextPath.fillColor
Section titled “TextPath.fillColor”textPath.fillColor
路径的填充颜色。
TextPath.filled
Section titled “TextPath.filled”textPath.filled
如果为 true,则路径应被填充。
布尔值
TextPath.fillOverprint
Section titled “TextPath.fillOverprint”textPath.fillOverprint
如果为 true,则填充对象下方的艺术内容应被叠印。
布尔值
TextPath.guides
Section titled “TextPath.guides”textPath.guides
如果为 true,则此路径是参考线对象。
布尔值
TextPath.height
Section titled “TextPath.height”textPath.height
组项目的高度。
数字(双精度)
TextPath.left
Section titled “TextPath.left”textPath.left
项目左侧的位置(以点为单位,从页面左侧测量)。
数字(双精度)
TextPath.note
Section titled “TextPath.note”textPath.note
分配给路径的注释文本。
字符串
TextPath.opacity
Section titled “TextPath.opacity”textPath.opacity
对象的不透明度。
范围:0.0 到 100.0
数字(双精度)
TextPath.parent
Section titled “TextPath.parent”textPath.parent
只读。此对象的父对象。
TextPath.pathPoints
Section titled “TextPath.pathPoints”textPath.pathPoints
只读。此路径项中包含的路径点。
TextPath.polarity
Section titled “TextPath.polarity”textPath.polarity
路径的极性。
TextPath.position
Section titled “TextPath.position”textPath.position
textPathItem 对象左上角的位置(以点为单位),格式为 [x, y]。不包括描边宽度。
包含 2 个数字的数组
TextPath.resolution
Section titled “TextPath.resolution”textPath.resolution
路径的分辨率,单位为每英寸点数(dpi)。
数字(双精度)
TextPath.selectedPathPoints
Section titled “TextPath.selectedPathPoints”textPath.selectedPathPoints
只读。路径中所有选中的路径点。
TextPath.strokeCap
Section titled “TextPath.strokeCap”textPath.strokeCap
线条端点的类型。
TextPath.strokeColor
Section titled “TextPath.strokeColor”textPath.strokeColor
路径的描边颜色。
TextPath.stroked
Section titled “TextPath.stroked”textPath.stroked
如果为 true,则路径应被描边。
布尔值
TextPath.strokeDashes
Section titled “TextPath.strokeDashes”textPath.strokeDashes
虚线长度。设置为空对象 {}
表示实线。
对象
TextPath.strokeDashOffset
Section titled “TextPath.strokeDashOffset”textPath.strokeDashOffset
虚线图案中默认的起始距离。
数字(双精度)
TextPath.strokeJoin
Section titled “TextPath.strokeJoin”textPath.strokeJoin
路径的连接类型。
TextPath.strokeMiterLimit
Section titled “TextPath.strokeMiterLimit”textPath.strokeMiterLimit
当默认描边连接设置为斜接时,此属性指定何时将连接转换为斜角(方形)。默认的斜接限制为 4,表示当点的长度达到描边宽度的四倍时,连接将从斜接连接转换为斜角连接。值为 1 表示斜角连接。
范围:1 到 500。
默认值:4
数字(双精度)
TextPath.strokeOverprint
Section titled “TextPath.strokeOverprint”textPath.strokeOverprint
如果为 true,则描边对象下方的艺术内容应被叠印。
布尔值
TextPath.strokeWidth
Section titled “TextPath.strokeWidth”textPath.strokeWidth
描边的宽度。
数字(双精度)
TextPath.top
Section titled “TextPath.top”textPath.top
项目顶部的位置(以点为单位,从页面底部测量)。
数字(双精度)
TextPath.typename
Section titled “TextPath.typename”textPath.typename
只读。引用对象的类名。
字符串
TextPath.width
Section titled “TextPath.width”textPath.width
项目的宽度。
数字(双精度)
TextPath.setEntirePath()
Section titled “TextPath.setEntirePath()”textPath.setEntirePath(pathPoints)
使用指定的 [x, y] 坐标对数组设置路径。
参数 | 类型 | 描述 |
---|---|---|
pathPoints | 包含 [x, y] 坐标对的数组 | 用于设置路径的路径点 |
无。