From 9d33e9c243bb2571b10fbc32bda8d80a44e53277 Mon Sep 17 00:00:00 2001 From: z00847066 Date: Tue, 12 Aug 2025 09:56:36 +0800 Subject: [PATCH] Support fontWidth attribute of textStyle --- api/@ohos.graphics.text.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/@ohos.graphics.text.d.ts b/api/@ohos.graphics.text.d.ts index def1b3cc8b..1bed3c81a7 100755 --- a/api/@ohos.graphics.text.d.ts +++ b/api/@ohos.graphics.text.d.ts @@ -1052,6 +1052,14 @@ declare namespace text { * @since 20 */ badgeType?: TextBadgeType; + + /** + * Font width. The default value is NORMAL. + * @type { ?FontWidth } it is uint32_t type data + * @syscap SystemCapability.Graphics.Drawing + * @since 21 + */ + fontWidth?: FontWidth; } /** -- Gitee