From 43ee3d8680447c2a2ce42e1d4ffa2ab9c9a1a0ef Mon Sep 17 00:00:00 2001 From: FTL1ght Date: Tue, 20 May 2025 19:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9TextBadge=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: FTL1ght --- .../native_drawing/drawing_text_typography.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_text_typography.h b/graphic/graphic_2d/native_drawing/drawing_text_typography.h index 8a704ced5..5a16530b0 100644 --- a/graphic/graphic_2d/native_drawing/drawing_text_typography.h +++ b/graphic/graphic_2d/native_drawing/drawing_text_typography.h @@ -586,9 +586,9 @@ typedef enum OH_Drawing_FontWidth { typedef enum OH_Drawing_TextBadgeType { /* No badge */ TEXT_BADGE_NONE, - /* Super badge */ + /* Superscript */ TEXT_SUPERSCRIPT, - /* Sub badge */ + /* Subscript */ TEXT_SUBSCRIPT, } OH_Drawing_TextBadgeType; @@ -2997,15 +2997,15 @@ size_t OH_Drawing_GetDrawingArraySize(OH_Drawing_Array* drawingArray); void OH_Drawing_SetTypographyTextTrailingSpaceOptimized(OH_Drawing_TypographyStyle* style, bool trailingSpaceOptimized); /** - * @brief Set text badge type. + * @brief Sets whether to use superscript or subscript in text layout. * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing - * @param style Indicates the pointer to an OH_Drawing_TextStyle object. - * @param textBageType The type of text badge. + * @param style Pointer to an OH_Drawing_TextStyle object. + * @param textBadgeType Superscript or subscript to use. * @since 20 * @version 1.0 */ -void OH_Drawing_SetTextStyleBadgeType(OH_Drawing_TextStyle* style, OH_Drawing_TextBadgeType textBageType); +void OH_Drawing_SetTextStyleBadgeType(OH_Drawing_TextStyle* style, OH_Drawing_TextBadgeType textBadgeType); /** * @brief Set whether to enable automatic spacing between Chinese and English for paragraph. @@ -3015,7 +3015,7 @@ void OH_Drawing_SetTextStyleBadgeType(OH_Drawing_TextStyle* style, OH_Drawing_Te * @param enableAutoSpace Indicates Whether to enable automatic spacing between Chinese and English. * @since 20 */ -void OH_Drawing_SetTypographyTextAutoSpace(OH_Drawing_TypographyStyle *style, bool enableAutoSpace); +void OH_Drawing_SetTypographyTextAutoSpace(OH_Drawing_TypographyStyle* style, bool enableAutoSpace); #ifdef __cplusplus } -- Gitee