pub unsafe extern "C" fn OH_Drawing_TextBlobCreateFromPosText(
text: *const c_void,
byteLength: usize,
point2D: *mut OH_Drawing_Point2D,
font: *const OH_Drawing_Font,
textEncoding: OH_Drawing_TextEncoding,
) -> *mut OH_Drawing_TextBlobExpand description
@brief Creates an OH_Drawing_TextBlob object from the text. The coordinates of each character in the ** OH_Drawing_TextBlob** object are determined by the coordinate information in the OH_Drawing_Point2D array. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If any of text, point2D, and font is NULL or byteLength is 0, ** OH_DRAWING_ERROR_INVALID_PARAMETER** is returned. If textEncoding is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
@param text Pointer to the text. @param byteLength Length of the text, in bytes. @param point2D Pointer to the start address of the {@link OH_Drawing_Point2D} array. The number of entries in the array is determined by {@link OH_Drawing_FontCountText} . @param font Pointer to the {@link OH_Drawing_Font} object. @param textEncoding Text encoding type {@link OH_Drawing_TextEncoding}. @return Returns a pointer to the created {@link OH_Drawing_TextBlob} object. @since 12 @version 1.0