diff --git a/graphic/graphic_2d/native_drawing/drawing_text_typography.h b/graphic/graphic_2d/native_drawing/drawing_text_typography.h index 9bdf581f61da05374d9028e623b2e958a73126aa..f95f8f8117175fc1f300f8c571bbb0c1d5f48715 100644 --- a/graphic/graphic_2d/native_drawing/drawing_text_typography.h +++ b/graphic/graphic_2d/native_drawing/drawing_text_typography.h @@ -589,11 +589,11 @@ typedef enum OH_Drawing_FontWidth { * @version 1.0 */ typedef enum OH_Drawing_TextBadgeType { - /* No badge */ + /** No badge */ TEXT_BADGE_NONE, - /* Superscript */ + /** Superscript */ TEXT_SUPERSCRIPT, - /* Subscript */ + /** Subscript */ TEXT_SUBSCRIPT, } OH_Drawing_TextBadgeType; @@ -2671,7 +2671,7 @@ int32_t OH_Drawing_TypographyGetUnresolvedGlyphsCount(OH_Drawing_Typography* typ void OH_Drawing_TypographyUpdateFontSize(OH_Drawing_Typography* typography, size_t from, size_t to, float fontSize); /** - * @brief Update the font color of the typography. + * @brief Update the font color of the typography * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * @param typography Indicates the pointer to the text OH_Drawing_Typography object. @@ -2706,7 +2706,7 @@ void OH_Drawing_TypographyUpdateDecorationThicknessScale(OH_Drawing_Typography* double decorationThicknessScale); /** - * @brief Update the decoration style of the typography. + * @brief Update the decoration style of typography. * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * @param typography Indicates the pointer to the text OH_Drawing_Typography object. @@ -3031,15 +3031,15 @@ void OH_Drawing_SetTypographyTextTab(OH_Drawing_TypographyStyle* style, OH_Drawi size_t OH_Drawing_GetDrawingArraySize(OH_Drawing_Array* drawingArray); /** -* @brief Sets whether to optimize whitespace at the end of each line for text typography. -* -* @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing -* @param style Indicates the pointer to an OH_Drawing_TypographyStyle object. -* @param trailingSpaceOptimized Boolean value indicating whether to optimize whitespace at the end of each line -* for text typography to set. -* @since 20 -* @version 1.0 -*/ + * @brief Sets whether to optimize whitespace at the end of each line for text typography. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + * @param style Indicates the pointer to an OH_Drawing_TypographyStyle object. + * @param trailingSpaceOptimized Boolean value indicating whether to optimize whitespace at the end of each line + * for text typography to set. + * @since 20 + * @version 1.0 + */ void OH_Drawing_SetTypographyTextTrailingSpaceOptimized(OH_Drawing_TypographyStyle* style, bool trailingSpaceOptimized); /**