Skip to main content

OH_Drawing_CreateTypographyHandler

Function OH_Drawing_CreateTypographyHandler 

Source
pub unsafe extern "C" fn OH_Drawing_CreateTypographyHandler(
    style: *mut OH_Drawing_TypographyStyle,
    fontCollection: *mut OH_Drawing_FontCollection,
) -> *mut OH_Drawing_TypographyCreate
Expand description

@brief Creates an OH_Drawing_TypographyCreate object. Release this pointer by calling {@link OH_Drawing_DestroyTypographyHandler} when this object is no longer needed. You are advised to use the {@link OH_Drawing_CreateSharedFontCollection} function to create an {@link OH_Drawing_FontCollection} object.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the {@link OH_Drawing_TypographyStyle} object, which is obtained from {@link OH_Drawing_CreateTypographyStyle}. @param fontCollection Pointer to the {@link OH_Drawing_FontCollection} object, which is obtained from {@link OH_Drawing_CreateFontCollection}. @return Pointer to the OH_Drawing_TypographyCreate object created. @since 8 @version 1.0