• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# drawing_text_lineTypography.h
2
3
4## Overview
5
6The **drawing_text_lineTypography.h** file declares the functions related to line typography, including functions to determine the number of characters that can be formatted from a given position within the text.
7
8**File to include**: <native_drawing/drawing_text_lineTypography.h>
9
10**Library**: libnative_drawing.so
11
12**System capability**: SystemCapability.Graphic.Graphic2D.NativeDrawing
13
14**Since**: 16
15
16**Related module**: [Drawing](_drawing.md)
17
18
19## Summary
20
21
22### Functions
23
24| Name| Description|
25| -------- | -------- |
26| [OH_Drawing_LineTypography](_drawing.md#oh_drawing_linetypography) \* [OH_Drawing_CreateLineTypography](_drawing.md#oh_drawing_createlinetypography) ([OH_Drawing_TypographyCreate](_drawing.md#oh_drawing_typographycreate) \*handler) | Creates a pointer to an [OH_Drawing_LineTypography](_drawing.md#oh_drawing_linetypography) object, which stores the text content and style and can be used to compute typography details for individual lines of text.|
27| void [OH_Drawing_DestroyLineTypography](_drawing.md#oh_drawing_destroylinetypography) ([OH_Drawing_LineTypography](_drawing.md#oh_drawing_linetypography) \*lineTypography) | Releases the memory occupied by an [OH_Drawing_LineTypography](_drawing.md#oh_drawing_linetypography) object.|
28| size_t [OH_Drawing_LineTypographyGetLineBreak](_drawing.md#oh_drawing_linetypographygetlinebreak) ([OH_Drawing_LineTypography](_drawing.md#oh_drawing_linetypography) \*lineTypography, size_t startIndex, double width) | Obtains the number of characters that can fit in the layout from the specified position within a limited layout width.|
29| [OH_Drawing_TextLine](_drawing.md#oh_drawing_textline) \* [OH_Drawing_LineTypographyCreateLine](_drawing.md#oh_drawing_linetypographycreateline) ([OH_Drawing_LineTypography](_drawing.md#oh_drawing_linetypography) \*lineTypography, size_t startIndex, size_t count) | Creates a pointer to an [OH_Drawing_TextLine](_drawing.md#oh_drawing_textline) object based on the text content in a specified range.|
30