• 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| typedef struct [OH_Drawing_TextTab](_drawing.md#oh_drawing_texttab) [OH_Drawing_TextTab](_drawing.md#oh_drawing_texttab) | Defines a struct used to manage text tabs. |
25| typedef struct [OH_Drawing_LineTypography](_drawing.md#oh_drawing_linetypography) [OH_Drawing_LineTypography](_drawing.md#oh_drawing_linetypography) | Defines a struct used to extract a single line of data from a piece of text for typography. |
26| 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.|
27| 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.|
28| 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.|
29| 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.|
30| 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.|
31| typedef struct [OH_Drawing_TextBox](_drawing.md#oh_drawing_textbox)  [OH_Drawing_TextBox](_drawing.md#oh_drawing_textbox) | Defines a struct for a text box, which is used to receive the rectangle size, direction, and quantity.|
32| 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.|
33| 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.|
34| 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.|
35| 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.|
36| typedef struct [OH_Drawing_TextLine](_drawing.md#oh_drawing_textline) [OH_Drawing_TextLine](_drawing.md#oh_drawing_textline) | Defines a struct used to manage text lines.|
37| typedef struct [OH_Drawing_Run](_drawing.md#oh_drawing_run) [OH_Drawing_Run](_drawing.md#oh_drawing_run) | Defines a struct used to manage runs.|
38