TextPath Element | Internet Development Index |
Defines a text path for a shape.
The following attributes modify a text path.
| Attribute | Description |
| FitPath | Defines whether the text fits the path of a shape. |
| FitShape | Defines whether the text fits the shape boundaries. |
| Font-Family | Specifies the font-family of text. |
| Font-Size | Specifies the font-size of text. |
| Font-Style | Specifies the font-style of text. |
| Font-Variant | Specifies the font-variant of text. |
| Font-Weight | Specifies the font-weight of text. |
| Font | Specifies the compound font value of text. |
| MSO-Text-Shadow | Defines whether a shadow is applied to the text. |
| On | Defines whether the text is displayed. |
| String | Defines the text string. |
| Text-Decoration | Defines the text-decoration of the text. |
| Trim | Defines whether extra space is removed above and below the text. |
| V-Rotate-Letters | Determines whether the letters of the text are rotated. |
| V-Same-Letter-Heights | Determines whether all letters will have the same height. |
| V-Text-Align | Defines the alignment of the text. |
| V-Text-Kern | Determines whether kerning is turned on. |
| V-Text-Reverse | Determines whether the layout order of rows is reversed. |
| V-Text-Spacing-Mode | Defines the mode for letterspacing. |
| V-Text-Spacing | Defines the amount of spacing for text. |
| XScale | Determines whether a straight textpath will be used instead of the shape path. |
Remarks
This element must be defined within a Shape element.
In addition to the normal fill, string, and style attributes, the TextPathOK attribute of Path must be set to True and the On attribute of TextPath must be set to True to display text on a text path.
The following is the minimum code needed to display text on a path.
<v:line from="50 200" to="400 100"> <v:fill on="True" color="red"/> <v:path textpathok="True"/> <v:textpath on="True" string="VML Text" style="font:normal normal normal 36pt Arial"/> </v:line>
Examples
Click here to view text drawn along a straight line.
Click here to view text drawn along a dynamic curved line.
Click here to view different styles of text along a text path.
文山县| 吴堡县| 湘西| 北安市| 阿拉善左旗| 安平县| 措勤县| 景洪市| 江门市| 大化| 沙洋县| 呼伦贝尔市| 民勤县| 来凤县| 迁西县| 于都县| 格尔木市| 新乡市| 海原县| 昌图县| 大邑县| 和田市| 江山市| 云浮市| 白河县| 宝清县| 金溪县| 息烽县| 都匀市| 游戏| 收藏| 合作市| 中阳县| 阿巴嘎旗| 承德县| 北辰区| 台湾省| 鸡泽县| 礼泉县| 景宁| 平陆县|