From 2d1ce4cb8b0a8ac91fb2da4d9cfa0a2cd70f91aa Mon Sep 17 00:00:00 2001 From: lemon_u Date: Thu, 13 Mar 2025 11:27:53 +0800 Subject: [PATCH] add api Signed-off-by: lemon_u --- .../native_drawing/drawing_text_typography.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/graphic/graphic_2d/native_drawing/drawing_text_typography.h b/graphic/graphic_2d/native_drawing/drawing_text_typography.h index 966621728..d200ed545 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. * -- Gitee