diff --git a/graphic/graphic_2d/native_drawing/drawing_text_typography.h b/graphic/graphic_2d/native_drawing/drawing_text_typography.h index 9666217288d549c081114e2ed343c13d6a8f6973..47299c932789a08ec68382befb83edb925284f92 100644 --- a/graphic/graphic_2d/native_drawing/drawing_text_typography.h +++ b/graphic/graphic_2d/native_drawing/drawing_text_typography.h @@ -577,6 +577,21 @@ enum OH_Drawing_FontWidth { FONT_WIDTH_ULTRA_EXPANDED = 9, }; +/** + * @brief Type of badge. + * + * @since 20 + * @version 1.0 + */ +enum OH_Drawing_TextBadgeType { + /* No badge */ + TEXT_BADGE_NONE, + /* Super badge */ + TEXT_SUPER_SCRIPT, + /* Sub badge */ + TEXT_SUB_SCRIPT, +}; + /** * @brief Defines the font style struct. * @@ -2899,6 +2914,16 @@ void OH_Drawing_SetTypographyTextTab(OH_Drawing_TypographyStyle* style, OH_Drawi */ size_t OH_Drawing_GetDrawingArraySize(OH_Drawing_Array* drawingArray); +/** + * @brief Set text badge type. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + * @param textBageType The type of text badge. + * @since 20 + * @version 1.0 + */ +void OH_Drawing_SetTextStyleBadgeType(TextBageType textBageType); + #ifdef __cplusplus } #endif