diff --git a/graphic/graphic_2d/native_drawing/drawing_text_typography.h b/graphic/graphic_2d/native_drawing/drawing_text_typography.h index 9666217288d549c081114e2ed343c13d6a8f6973..d200ed54544a1fc79bd0ace51406209074fa8da4 100644 --- a/graphic/graphic_2d/native_drawing/drawing_text_typography.h +++ b/graphic/graphic_2d/native_drawing/drawing_text_typography.h @@ -2888,6 +2888,18 @@ float OH_Drawing_GetTextTabLocation(OH_Drawing_TextTab* tab); */ void OH_Drawing_SetTypographyTextTab(OH_Drawing_TypographyStyle* style, OH_Drawing_TextTab* tab); +/** + * @brief Sets whether to trim excess 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 trimLineEndSpace Boolean value indicating whether to trim excess whitespace at the end of each line for text + * typography to set. + * @since 20 + * @version 1.0 + */ +void OH_Drawing_SetTypographyTextTrimLineEndSpace(OH_Drawing_TypographyStyle* style, bool trimLineEndSpace); + /** * @brief Get DrawingArray size. *