• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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| [OH_Drawing_FontCollection](_drawing.md#oh_drawing_fontcollection) | Defines an **OH_Drawing_FontCollection**, which is used to load fonts.|
25| [OH_Drawing_Typography](_drawing.md#oh_drawing_typography) | Defines an **OH_Drawing_Typography**, which is used to manage the typography layout and display.|
26| [OH_Drawing_TextStyle](_drawing.md#oh_drawing_textstyle) | Defines an **OH_Drawing_TextStyle**, which is used to manage text colors and decorations.|
27| [OH_Drawing_TypographyStyle](_drawing.md#oh_drawing_typographystyle) | Defines an **OH_Drawing_TypographyStyle**, which is used to manage the typography style, such as the text direction.|
28| [OH_Drawing_TypographyCreate](_drawing.md#oh_drawing_typographycreate) | Creates an [OH_Drawing_Typography](_drawing.md#oh_drawing_typography).|
29| [OH_Drawing_TextBox](_drawing.md#oh_drawing_textbox) | Defines an **OH_Drawing_TextBox**, which is used to receive the rectangle size, direction, and quantity of text boxes.|
30| [OH_Drawing_PositionAndAffinity](_drawing.md#oh_drawing_positionandaffinity) | Defines an **OH_Drawing_PositionAndAffinity**, which is used to receive the position and affinity of the font.|
31| [OH_Drawing_Range](_drawing.md#oh_drawing_range) | Defines an **OH_Drawing_Range**, which is used to receive the start position and end position of the font.|
32