From 3503e86495ba03af6cf70157046410a831b1848f 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 Change-Id: I65241a622a19e5c8fc3b7b135d920fc3525860fb --- .../native_drawing/drawing_text_typography.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_text_typography.h b/graphic/graphic_2d/native_drawing/drawing_text_typography.h index 7e66d405e79..ddd60c6fdc4 100644 --- a/graphic/graphic_2d/native_drawing/drawing_text_typography.h +++ b/graphic/graphic_2d/native_drawing/drawing_text_typography.h @@ -591,9 +591,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; @@ -3043,15 +3043,14 @@ 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. @@ -3061,7 +3060,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