harmony 鸿蒙drawing_text_lineTypography.h
drawing_text_lineTypography.h
Overview
The 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.
File to include: <native_drawing/drawing_text_lineTypography.h>
Library: libnative_drawing.so
System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing
Since: 16
Related module: Drawing
Summary
Functions
Name | Description |
---|---|
OH_Drawing_LineTypography * OH_Drawing_CreateLineTypography (OH_Drawing_TypographyCreate *handler) | Creates a pointer to an OH_Drawing_LineTypography object, which stores the text content and style and can be used to compute typography details for individual lines of text. |
void OH_Drawing_DestroyLineTypography (OH_Drawing_LineTypography *lineTypography) | Releases the memory occupied by an OH_Drawing_LineTypography object. |
size_t OH_Drawing_LineTypographyGetLineBreak (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. |
OH_Drawing_TextLine * OH_Drawing_LineTypographyCreateLine (OH_Drawing_LineTypography *lineTypography, size_t startIndex, size_t count) | Creates a pointer to an OH_Drawing_TextLine object based on the text content in a specified range. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙DisplaySoloist_ExpectedRateRange
harmony 鸿蒙NativeColorSpaceManager
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦