1# drawing_text_declaration.h 2 3 4## Overview 5 6The **drawing_text_declaration.h** file declares the structs related to text in 2D drawing. 7 8**File to include**: <native_drawing/drawing_text_declaration.h> 9 10**Library**: libnative_drawing.so 11 12**Since**: 8 13 14**Related module**: [Drawing](_drawing.md) 15 16 17## Summary 18 19 20### Types 21 22| Name| Description| 23| -------- | -------- | 24| typedef struct [OH_Drawing_FontCollection](_drawing.md#oh_drawing_fontcollection) [OH_Drawing_FontCollection](_drawing.md#oh_drawing_fontcollection) | Defines a struct used to load fonts.| 25| typedef struct [OH_Drawing_Typography](_drawing.md#oh_drawing_typography) [OH_Drawing_Typography](_drawing.md#oh_drawing_typography) | Defines a struct used to manage the typography layout and display.| 26| typedef struct [OH_Drawing_TextStyle](_drawing.md#oh_drawing_textstyle) [OH_Drawing_TextStyle](_drawing.md#oh_drawing_textstyle) | Defines a struct used to manage text colors and decorations.| 27| typedef struct [OH_Drawing_TypographyStyle](_drawing.md#oh_drawing_typographystyle) [OH_Drawing_TypographyStyle](_drawing.md#oh_drawing_typographystyle) | Defines a struct used to manage the typography style, such as the text direction.| 28| typedef struct [OH_Drawing_TypographyCreate](_drawing.md#oh_drawing_typographycreate) [OH_Drawing_TypographyCreate](_drawing.md#oh_drawing_typographycreate) | Defines a struct used to create an [OH_Drawing_Typography](_drawing.md#oh_drawing_typography) object.| 29| typedef struct [OH_Drawing_TextBox](_drawing.md#oh_drawing_textbox) [OH_Drawing_TextBox](_drawing.md#oh_drawing_textbox) | Defines a struct used to receive the rectangle size, direction, and quantity of text boxes.| 30| typedef struct [OH_Drawing_PositionAndAffinity](_drawing.md#oh_drawing_positionandaffinity) [OH_Drawing_PositionAndAffinity](_drawing.md#oh_drawing_positionandaffinity) | Defines a struct used to receive the position and affinity of a glyph.| 31| typedef struct [OH_Drawing_Range](_drawing.md#oh_drawing_range) [OH_Drawing_Range](_drawing.md#oh_drawing_range) | Defines a struct used to receive the start position and end position of a glyph.| 32| typedef struct [OH_Drawing_TextShadow](_drawing.md#oh_drawing_textshadow) [OH_Drawing_TextShadow](_drawing.md#oh_drawing_textshadow) | Defines a struct used to manage text shadows.| 33| typedef struct [OH_Drawing_FontParser](_drawing.md#oh_drawing_fontparser) [OH_Drawing_FontParser](_drawing.md#oh_drawing_fontparser) | Defines a struct used to parse system font files.| 34