From dfef7c0984f05e095af17fc469a53b44f1efc062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=91=AB?= Date: Tue, 27 Jun 2023 11:19:38 +0800 Subject: [PATCH] =?UTF-8?q?Font=E6=96=87=E6=9C=AC=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=90=84=E5=B1=9E=E6=80=A7=E9=BB=98=E8=AE=A4=E5=80=BC=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王鑫 --- zh-cn/application-dev/reference/arkui-ts/ts-types.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-types.md b/zh-cn/application-dev/reference/arkui-ts/ts-types.md index 46c1a27e5f..53227c0c52 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-types.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-types.md @@ -154,10 +154,10 @@ | 名称 | 类型 | 必填 | 说明 | | ------ | ---------------------------------------- | ---- | ---------------------------------------- | -| size | [Length](#length) | 否 | 设置文本尺寸,Length为number类型时,使用fp单位。不支持设置百分比字符串。 | -| weight | [FontWeight](ts-appendix-enums.md#fontweight) \| number \| string | 否 | 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。 | +| size | [Length](#length) | 否 | 设置文本尺寸,Length为number类型时,使用fp单位。不支持设置百分比字符串。
默认值:16.0 | +| weight | [FontWeight](ts-appendix-enums.md#fontweight) \| number \| string | 否 | 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。FontWeight类型默认值为FontWeight.Normal | | family | string \| [Resource](#resource) | 否 | 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial, HarmonyOS Sans'。当前只支持'HarmonyOS Sans'字体。 | -| style | [FontStyle](ts-appendix-enums.md#fontstyle) | 否 | 设置文本的字体样式。 | +| style | [FontStyle](ts-appendix-enums.md#fontstyle) | 否 | 设置文本的字体样式。
默认值:FontStyle.Normal | ## Area8+ -- GitLab