From 37c8329a8655752bdc749439867f0b93ec9f5706 Mon Sep 17 00:00:00 2001 From: cuijiaojiao1 Date: Wed, 11 Mar 2026 19:02:57 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IFTU2N]=20SVG=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=80=9A=E7=94=A8=E5=B1=9E=E6=80=A7=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?SupportHarmonyOS=E5=88=97=E5=8F=8ATagsSupport=E5=88=97=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cuijiaojiao1 --- en/react-native-svg-capi.md | 110 ++++++++++++++++----------------- zh-cn/react-native-svg-capi.md | 110 ++++++++++++++++----------------- 2 files changed, 110 insertions(+), 110 deletions(-) diff --git a/en/react-native-svg-capi.md b/en/react-native-svg-capi.md index 0ef07450..95881d7c 100644 --- a/en/react-native-svg-capi.md +++ b/en/react-native-svg-capi.md @@ -588,64 +588,64 @@ The following are the currently supported component properties: Support status of Common props component Properties on the HarmonyOS side -| Name | Description | Type | Default | Required | Platform | -| :------------------------------------: | :----------------------------------------------------------: | :--------------------: | --------- | :------- | :------- | -| fill | Sets the color of the fill area | string | '#000' | No | All | -| fillOpacity | Sets the opacity of the fill area | number | 1 | No | All | -| fillRule | Sets the fill rule | number | 1 | No | All | -| clipRule | Sets the clipping rule | string | 'evenodd' | No | All | -| clipPath | Specifies and associates a clipping path | string | 'none' | No | All | -| stroke | Sets the border color (no border by default if not set) | string | none | No | All | -| strokeWidth | Sets the border width | number | 1 | No | All | -| strokeOpacity | Border opacity | number | 1 | No | All | -| strokeDasharray | Pattern paradigm of dashed lines used for stroking | number | none | No | All | -| strokeDashoffset | Specifies the distance from the start of the path to the dash pattern | number | 1 | No | All | -| strokeLinecap | Sets the shape of the two ends of the path | string | 'butt' | No | All | -| strokeLinejoin | Indicates the shape used at the corners of the path | string | 'miter' | No | All | -| strokeMiterlimit | Sets a limit on the ratio of miter length to stroke-width | number | 4 | No | All | -| vectorEffect | Indicates the vector effect to use when drawing the object | string | none | No | All | -| translate | Sets displacement | numberArray | [0,0] | No | All | -| translateX | Sets x-axis displacement | number | 0 | No | All | -| translateY | Sets y-axis displacement | number | 0 | No | All | -| origin | Changes the origin of transformation for an element | numberArray | [0,0] | No | All | -| originX | Changes the x-coordinate of the origin of transformation for an element (invalid when used alone; must be used with other properties such as rotation) | number | 0 | No | All | -| originY | Changes the y-coordinate of the origin of transformation for an element (invalid when used alone; must be used with other properties such as rotation) | number | 0 | No | All | -| scale | Defines the scaling size | numberArray | [1,1] | No | All | -| scaleX | Defines the x-axis scaling size | number | 1 | No | All | -| scaleY | Defines the y-axis scaling size | number | 1 | No | All | -| rotation | Sets the rotation angle | number | 0 | No | All | -| x | Identifies an x-axis coordinate | number | 0 | No | All | -| y | Identifies a y-axis coordinate | number | 0 | No | All | -| transformchanged in 15.13.0 | Defines a list of transform rules applied to the element and its child elements,version code < 15.13.0,transform type is string, version code >= 15.13.0 transform type also supports arrry type. | string\|TransformArray | - | No | All | -| marker | Specifies the marker style for all vertices of the path | string | - | No | All | -| markerStart | Specifies the marker style used for the start point of the path | string | - | No | All | -| markerMid | Specifies the marker style used for the middle vertices of the path | string | - | No | All | -| markerEnd | Specifies the marker style used for the end point of the path | string | - | No | All | -| mask | Specifies a mask effect for the element using the Mask element | string | - | No | All | -| id | Sets the node id | string | - | No | All | -| opacity | Sets opacity | number | 1 | No | All | -| display | Controls how the element is displayed | string | 'block' | No | All | -| pointerEvents | Sets how the element responds to click events | string | | No | All | +| Name | Description | Type | Default | Required | Platform | HarmonyOS Support | Tags Support | +| :------------------------------------: | :----------------------------------------------------------: | :--------------------: | --------- | :------- | :------- | -------- | -------- | +| fill | Sets the color of the fill area | string | '#000' | No | All | Yes | Circle、Ellipse、G、Path、Polygon、Polyline、Rect、Svg、TSpan、Text | +| fillOpacity | Sets the opacity of the fill area | number | 1 | No | All | Yes | Circle、Ellipse、G、Path、Polygon、Polyline、Rect、Svg、TSpan、Text | +| fillRule | Sets the fill rule | number | 1 | No | All | Yes | Path、Polygon、Polyline | +| clipRule | Sets the clipping rule | string | 'evenodd' | No | All | Yes | Path | +| clipPath | Specifies and associates a clipping path | string | 'none' | No | All | Yes | Rect | +| stroke | Sets the border color (no border by default if not set) | string | none | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeWidth | Sets the border width | number | 1 | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeOpacity | Border opacity | number | 1 | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeDasharray | Pattern paradigm of dashed lines used for stroking | number | none | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeDashoffset | Specifies the distance from the start of the path to the dash pattern | number | 1 | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeLinecap | Sets the shape of the two ends of the path | string | 'butt' | No | All | Yes | Line | +| strokeLinejoin | Indicates the shape used at the corners of the path | string | 'miter' | No | All | Yes | Path、TSpan、Text | +| strokeMiterlimit | Sets a limit on the ratio of miter length to stroke-width | number | 4 | No | All | No | | +| vectorEffect | Indicates the vector effect to use when drawing the object | string | none | No | All | Yes | Circle、Ellipse、Path、Rect | +| translate | Sets displacement | numberArray | [0,0] | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| translateX | Sets x-axis displacement | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| translateY | Sets y-axis displacement | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| origin | Changes the origin of transformation for an element | numberArray | [0,0] | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| originX | Changes the x-coordinate of the origin of transformation for an element (invalid when used alone; must be used with other properties such as rotation) | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| originY | Changes the y-coordinate of the origin of transformation for an element (invalid when used alone; must be used with other properties such as rotation) | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| scale | Defines the scaling size | numberArray | [1,1] | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| scaleX | Defines the x-axis scaling size | number | 1 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| scaleY | Defines the y-axis scaling size | number | 1 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| rotation | Sets the rotation angle | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| x | Identifies an x-axis coordinate | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| y | Identifies a y-axis coordinate | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| transformchanged in 15.13.0 | Defines a list of transform rules applied to the element and its child elements,version code < 15.13.0,transform type is string, version code >= 15.13.0 transform type also supports arrry type. | string\|TransformArray | - | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| marker | Specifies the marker style for all vertices of the path | string | - | No | All | Yes | Line | +| markerStart | Specifies the marker style used for the start point of the path | string | - | No | All | Yes | Circle、Ellipse、Path、Rect | +| markerMid | Specifies the marker style used for the middle vertices of the path | string | - | No | All | Yes | Circle、Ellipse、Rect | +| markerEnd | Specifies the marker style used for the end point of the path | string | - | No | All | Yes | Circle、Ellipse、Line、Path、Rect | +| mask | Specifies a mask effect for the element using the Mask element | string | - | No | All | Yes | Circle、Rect | +| id | Sets the node id | string | - | No | All | Yes | ClipPath、Circle、Ellipse、G、LinearGradient、Mask、Marker、Rect、Pattern、Symbol、Path | +| opacity | Sets opacity | number | 1 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| display | Controls how the element is displayed | string | 'inline' | No | All | Yes | Circle、Ellipse、Path、Polygon、Polyline、Rect | +| pointerEvents | Sets how the element responds to click events | string | | No | All | Yes | Svg | **FontProps**: Support status of FontProps component Properties on the HarmonyOS side -| Name | Description | Type | Default | Required | Platform | -| :-------------------: | :----------------------------------------------------------: | :--------: | :------ | :------- | :------- | -| fontSize | Font size from baseline to baseline when setting multi-line text to solid lines in a multi-line layout environment | string | medium | No | All | -| fontWeight | Thickness or lightness of the glyph used to render text relative to other fonts in the same font family | string | normal | No | All | -| font | Sets a font for text layout | FontObject | none | No | All | -| fontStyle | Specifies text rendering style | string | normal | No | All | -| fontVariant | Sets text font variant | | | No | All | -| fontStretch | Controls font stretch degree | string | normal | No | All | -| fontFamily | Specifies text font | string | normal | No | All | -| textAnchor | Used to specify the alignment of text relative to its anchor point | string | start | No | All | -| textDecoration | Sets text decoration effects | string | - | No | All | -| letterSpacing | Sets character spacing or letter spacing | number | 1 | No | All | -| wordSpacing | Sets the distance between English words | number | 1 | No | All | -| kerning | Sets the spacing between characters | number | 0 | No | All | -| fontFeatureSettings | Font feature control | string | normal | No | All | -| fontVariantLigatures | Controls ligatures in text | string | normal | No | All | -| fontVariationSettings | Sets the width, height, inclination, etc., of the font | string | normal | No | All | +| Name | Description | Type | Default | Required | Platform | HarmonyOS Support | Tags Support | +| :-------------------: | :----------------------------------------------------------: | :--------: | :------ | :------- | :------- | ----------------- | ------------ | +| font | Sets a font for text layout | FontObject | none | No | All | Partially | Text、TSpan | +| fontSize | Font size from baseline to baseline when setting multi-line text to solid lines in a multi-line layout environment | string | medium | No | All | Yes | Text、TSpan | +| fontWeight | Thickness or lightness of the glyph used to render text relative to other fonts in the same font family | string | normal | No | All | Yes | Text、TSpan | +| fontStyle | Specifies text rendering style | string | normal | No | All | Yes | Text、TSpan | +| fontVariant | Sets text font variant | | | No | All | No | | +| fontStretch | Controls font stretch degree | string | normal | No | All | No | | +| fontFamily | Specifies text font | string | normal | No | All | Partially | Text、TSpan | +| textAnchor | Used to specify the alignment of text relative to its anchor point | string | start | No | All | Yes | Text、TSpan | +| textDecoration | Sets text decoration effects | string | - | No | All | No | | +| letterSpacing | Sets character spacing or letter spacing | number | 1 | No | All | Yes | Text、TSpan | +| wordSpacing | Sets the distance between English words | number | 1 | No | All | Yes | Text、TSpan | +| kerning | Sets the spacing between characters | number | 0 | No | All | No | | +| fontFeatureSettings | Font feature control | string | normal | No | All | No | | +| fontVariantLigatures | Controls ligatures in text | string | normal | No | All | No | | +| fontVariationSettings | Sets the width, height, inclination, etc., of the font | string | normal | No | All | No | | ## 5. Static Methods diff --git a/zh-cn/react-native-svg-capi.md b/zh-cn/react-native-svg-capi.md index 2193ecbf..96fcefab 100644 --- a/zh-cn/react-native-svg-capi.md +++ b/zh-cn/react-native-svg-capi.md @@ -588,64 +588,64 @@ ohpm install Common props 组件属性 HarmonyOS 侧支持情况 -| Name | Description | Type | Default | Required | Platform | -| :--------------: | :-----------------------------------------: | :---------: | :-------: | :------: | :------: | -| fill | 设置填充区域颜色 | string | '#000' | No | All | -| fillOpacity | 设置填充区域透明度 | number | 1 | No | All | -| fillRule | 设置填充规则 | number | 1 | No | All | -| clipRule | 设置裁剪规则 | string | 'evenodd' | No | All | -| clipPath | 指定、关联一条裁剪路径 | string | 'none' | No | All | -| stroke | 设置边框颜色,不设置时,默认没有边框 | string | none | No | All | -| strokeWidth | 设置边框宽度 | number | 1 | No | All | -| strokeOpacity | 边框透明度 | number | 1 | No | All | -| strokeDasharray | 用来描边的点划线的图案范式 | number | none | No | All | -| strokeDashoffset | 指定了 dash 模式到路径开始的距离 | number | 1 | No | All | -| strokeLinecap | 设置路径两端的形状 | string | butt | No | All | -| strokeLinejoin | 指明路径的转角处使用的形状 | string | miter | No | All | -| strokeMiterlimit | 对斜接长度和 stroke-width 的比率设置极限 值 | number | 4 | No | All | -| vectorEffect | 指明绘制对象时要使用的矢量效果 | string | none | No | All | -| translate | 设置位移 | numberArray | 0,0 | No | All | -| translateX | 设置 x 轴位移 | number | 0 | No | All | -| translateY | 设置 y 轴位移 | number | 0 | No | All | -| origin | 更改一个元素变形的原点 | numberArray | 0,0 | No | All | -| originX | 更改一个元素变形的原点 x 坐标(单独使用无效,需配合其他属性如 rotation 使用) | number | 0 | No | All | -| originY | 更改一个元素变形的原点 y 坐标(单独使用无效,需配合其他属性如 rotation 使用) | number | 0 | No | All | -| scale | 定义缩放大小 | numberArray | 1,1 | No | All | -| scaleX | 定义 x 轴缩放大小 | number | 1 | No | All | -| scaleY | 定义 y 轴缩放大小 | number | 1 | No | All | -| rotation | 设置旋转角度 | number | 0,0 | No | All | -| x | 标识一个 x 轴坐标 | number | 0 | No | All | -| y | 标识一个 y 轴坐标 | number | 0 | No | All | -| transformchanged in 15.13.0 | 定义应用于元素及其子元素的变换规则列表, 小于15.13.0 版本,transform 属性类型仅支持string类型, 15.13.0 版本及以后版本,transform 属性同时支持string类型及Transform Object 数组 | string\|TransformArray | - | No | All | -| marker | 指定路径所有顶点的路标样式 | string | - | No | All | -| markerStart | 指定路径起点所采用的路标样式 | string | - | No | All | -| markerMid | 指定路径中间顶点所采用的路标样式 | string | - | No | All | -| markerEnd | 指定路径终点所采用的路标样式 | string | - | No | All | -| mask | 给元素指定使用 Mask 元素实现遮罩效果 | string | - | No | All | -| id | 设置节点 id | string | - | No | All | -| opacity | 设置透明度 | number | 1 | No | All | -| display | 控制元素展示的方式 | string | block | No | All | -| pointerEvents | 设置元素如何响应点击事件 | string | | No | All | +| Name | Description | Type | Default | Required | Platform | HarmonyOS Support | Tags Support | +| :--------------: | :-----------------------------------------: | :---------: | :-------: | :------: | :------: | -------- | -------- | +| fill | 设置填充区域颜色 | string | '#000' | No | All | Yes | Circle、Ellipse、G、Path、Polygon、Polyline、Rect、Svg、TSpan、Text | +| fillOpacity | 设置填充区域透明度 | number | 1 | No | All | Yes | Circle、Ellipse、G、Path、Polygon、Polyline、Rect、Svg、TSpan、Text | +| fillRule | 设置填充规则 | number | 1 | No | All | Yes | Path、Polygon、Polyline | +| clipRule | 设置裁剪规则 | string | 'evenodd' | No | All | Yes | Path | +| clipPath | 指定、关联一条裁剪路径 | string | 'none' | No | All | Yes | Rect | +| stroke | 设置边框颜色,不设置时,默认没有边框 | string | none | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeWidth | 设置边框宽度 | number | 1 | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeOpacity | 边框透明度 | number | 1 | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeDasharray | 用来描边的点划线的图案范式 | number | none | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeDashoffset | 指定了 dash 模式到路径开始的距离 | number | 1 | No | All | Yes | Circle、Ellipse、G、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| strokeLinecap | 设置路径两端的形状 | string | butt | No | All | Yes | Line | +| strokeLinejoin | 指明路径的转角处使用的形状 | string | miter | No | All | Yes | Path、TSpan、Text | +| strokeMiterlimit | 对斜接长度和 stroke-width 的比率设置极限 值 | number | 4 | No | All | No | | +| vectorEffect | 指明绘制对象时要使用的矢量效果 | string | none | No | All | Yes | Circle、Ellipse、Path、Rect | +| translate | 设置位移 | numberArray | 0,0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| translateX | 设置 x 轴位移 | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| translateY | 设置 y 轴位移 | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| origin | 更改一个元素变形的原点 | numberArray | 0,0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| originX | 更改一个元素变形的原点 x 坐标(单独使用无效,需配合其他属性如 rotation 使用) | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| originY | 更改一个元素变形的原点 y 坐标(单独使用无效,需配合其他属性如 rotation 使用) | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| scale | 定义缩放大小 | numberArray | 1,1 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| scaleX | 定义 x 轴缩放大小 | number | 1 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| scaleY | 定义 y 轴缩放大小 | number | 1 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| rotation | 设置旋转角度 | number | 0,0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| x | 标识一个 x 轴坐标 | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| y | 标识一个 y 轴坐标 | number | 0 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| transformchanged in 15.13.0 | 定义应用于元素及其子元素的变换规则列表, 小于15.13.0 版本,transform 属性类型仅支持string类型, 15.13.0 版本及以后版本,transform 属性同时支持string类型及Transform Object 数组 | string\|TransformArray | - | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| marker | 指定路径所有顶点的路标样式 | string | - | No | All | Yes | Line | +| markerStart | 指定路径起点所采用的路标样式 | string | - | No | All | Yes | Circle、Ellipse、Path、Rect | +| markerMid | 指定路径中间顶点所采用的路标样式 | string | - | No | All | Yes | Circle、Ellipse、Rect | +| markerEnd | 指定路径终点所采用的路标样式 | string | - | No | All | Yes | Circle、Ellipse、Line、Path、Rect | +| mask | 给元素指定使用 Mask 元素实现遮罩效果 | string | - | No | All | Yes | Circle、Rect | +| id | 设置节点 id | string | - | No | All | Yes | ClipPath、Circle、Ellipse、G、LinearGradient、Mask、Marker、Rect、Pattern、Symbol、Path | +| opacity | 设置透明度 | number | 1 | No | All | Yes | Circle、Ellipse、G、Image、Line、Path、Polygon、Polyline、Rect、TSpan、Text | +| display | 控制元素展示的方式 | string | inline | No | All | Yes | Circle、Ellipse、Path、Polygon、Polyline、Rect | +| pointerEvents | 设置元素如何响应点击事件 | string | | No | All | Yes | Svg | FontProps 组件属性 HarmonyOS 侧支持情况 -| Name | Description | Type | Default | Required | Platform | -| :-------------------: | :------------------------------------------------------------: | :----------------: | :-----: | :------: | :------: | -| fontSize | 在多行布局环境中将多行文本设置为实线时,从基线到基线的字体大小 | string | medium | No | All | -| fontWeight | 用于呈现文本的字形相对于同一字体族中的其他字体的粗度或亮度 | string | normal | No | All | -| font | 设置一个用于文字布局的字体 | FontObject(对象) | none | No | All | -| fontStyle | 指定文本渲染样式 | string | normal | No | All | -| fontVariant | 设置文本字体变体 | | | No | All | -| fontStretch | 控制字体拉伸程度 | string | normal | No | All | -| fontFamily | 指定文本字体 | string | normal | No | All | -| textAnchor | 用于指定文本相对于其锚点的对齐方式 | string | start | No | All | -| textDecoration | 设置文本装饰效果 | string | - | No | All | -| letterSpacing | 设置字符间距或字母间距 | number | 1 | No | All | -| wordSpacing | 设置英文单词之间的距离 | number | 1 | No | All | -| kerning | 设置字符之间的间距 | number | 0 | No | All | -| fontFeatureSettings | 字体特性控制 | string | normal | No | All | -| fontVariantLigatures | 控制文本中连字 | string | normal | No | All | -| fontVariationSettings | 设置字体的宽度、高度、倾斜度等 | string | normal | No | All | +| Name | Description | Type | Default | Required | Platform | HarmonyOS Support | Tags Support | +| :-------------------: | :----------------------------------------------------------: | :----------------: | :-----: | :------: | :------: | ----------------- | ------------ | +| font | 设置一个用于文字布局的字体 | FontObject(对象) | none | No | All | Partially | Text、TSpan | +| fontSize | 在多行布局环境中将多行文本设置为实线时,从基线到基线的字体大小 | string | medium | No | All | Yes | Text、TSpan | +| fontWeight | 用于呈现文本的字形相对于同一字体族中的其他字体的粗度或亮度 | string | normal | No | All | Yes | Text、TSpan | +| fontStyle | 指定文本渲染样式 | string | normal | No | All | Yes | Text、TSpan | +| fontVariant | 设置文本字体变体 | | | No | All | No | | +| fontStretch | 控制字体拉伸程度 | string | normal | No | All | No | | +| fontFamily | 指定文本字体 | string | normal | No | All | Partially | Text、TSpan | +| textAnchor | 用于指定文本相对于其锚点的对齐方式 | string | start | No | All | Yes | Text、TSpan | +| textDecoration | 设置文本装饰效果 | string | - | No | All | No | | +| letterSpacing | 设置字符间距或字母间距 | number | 1 | No | All | Yes | Text、TSpan | +| wordSpacing | 设置英文单词之间的距离 | number | 1 | No | All | Yes | Text、TSpan | +| kerning | 设置字符之间的间距 | number | 0 | No | All | No | | +| fontFeatureSettings | 字体特性控制 | string | normal | No | All | No | | +| fontVariantLigatures | 控制文本中连字 | string | normal | No | All | No | | +| fontVariationSettings | 设置字体的宽度、高度、倾斜度等 | string | normal | No | All | No | | ## 5. 静态方法 -- Gitee