pub unsafe extern "C" fn OH_Drawing_TextBlobCreateFromText(
text: *const c_void,
byteLength: usize,
font: *const OH_Drawing_Font,
textEncoding: OH_Drawing_TextEncoding,
) -> *mut OH_Drawing_TextBlobExpand description
@brief Creates an OH_Drawing_TextBlob object from the text. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either text or font is NULL, 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 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