1e41f4b71Sopenharmony_ci# drawing_text_declaration.h
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Overview
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciThe **drawing_text_declaration.h** file declares the structs related to text in 2D drawing.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**File to include**: <native_drawing/drawing_text_declaration.h>
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**Library**: libnative_drawing.so
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**Since**: 8
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Related module**: [Drawing](_drawing.md)
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## Summary
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci### Types
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci| Name| Description| 
23e41f4b71Sopenharmony_ci| -------- | -------- |
24e41f4b71Sopenharmony_ci| 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.| 
25e41f4b71Sopenharmony_ci| 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.| 
26e41f4b71Sopenharmony_ci| 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.| 
27e41f4b71Sopenharmony_ci| 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.| 
28e41f4b71Sopenharmony_ci| 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.| 
29e41f4b71Sopenharmony_ci| 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.| 
30e41f4b71Sopenharmony_ci| 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.| 
31e41f4b71Sopenharmony_ci| 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.| 
32e41f4b71Sopenharmony_ci| 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.| 
33e41f4b71Sopenharmony_ci| 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