harmony 鸿蒙drawing_text_lineTypography.h

  • 2025-06-12
  • 浏览 (3)

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 鸿蒙ArkGraphics 2D

harmony 鸿蒙BufferHandle

harmony 鸿蒙ColorSpacePrimaries

harmony 鸿蒙DisplaySoloist_ExpectedRateRange

harmony 鸿蒙_drawing

harmony 鸿蒙NativeColorSpaceManager

harmony 鸿蒙NativeDisplaySoloist

harmony 鸿蒙NativeVsync

harmony 鸿蒙NativeWindow

harmony 鸿蒙OH_Drawing_BitmapFormat

0  赞