Experimental:
这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
方法
attribute indicates the method by which text should be rendered along the path of a
<textPath>
元素。
You can use this attribute with the following SVG elements:
For
<textPath>
,
方法
indicates the method by which text should be rendered along the path.
|
值
|
align
|
stretch
|
|
默认值
|
align
|
|
Animatable
|
Yes
|
-
align
This value indicates that the characters should be rendered so that they are not stretched or warped. The characters are rotated, scaled and stretched when they are rendered. As a result, for fonts with connected characters (e.g. cursive fonts), the connections may not align properly when text is rendered along the path.
-
stretch
This value indicates that the character outlines will be converted into paths, and then stretched and possibly warped. With this approach, connected characters, such as in cursive fonts, will maintain their connections.
No compatibility data found for
svg.elements.textPath.method
.
Check for problems with this page
or contribute missing data to
mdn/browser-compat-data
.
Found a problem with this page?
最后修改:
,
由 MDN 贡献者