Skip to main content

OH_Drawing_FontStyleSetGetStyle

Function OH_Drawing_FontStyleSetGetStyle 

Source
pub unsafe extern "C" fn OH_Drawing_FontStyleSetGetStyle(
    fontStyleSet: *mut OH_Drawing_FontStyleSet,
    index: i32,
    styleName: *mut *mut c_char,
) -> OH_Drawing_FontStyleStruct
Expand description

@brief Obtains the font style. Call {@link OH_Drawing_FontStyleSetFreeStyleName} to release styleName when it is no longer needed, freeing up the allocated memory.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param fontStyleSet Pointer to an {@link OH_Drawing_FontStyleSet} object. @param index Index of the specified font style. The value range is [0, OH_Drawing_FontStyleSetCount() - 1]. @param styleName String specifying the font style name. Call {@link OH_Drawing_FontStyleSetFreeStyleName} to release it when it is no longer needed, freeing up the allocated memory. @return Returns the font style. @since 12 @version 1.0