Skip to main content

OH_Drawing_FontStyleSetMatchStyle

Function OH_Drawing_FontStyleSetMatchStyle 

Source
pub unsafe extern "C" fn OH_Drawing_FontStyleSetMatchStyle(
    fontStyleSet: *mut OH_Drawing_FontStyleSet,
    fontStyleStruct: OH_Drawing_FontStyleStruct,
) -> *mut OH_Drawing_Typeface
Expand description

@brief Obtains the typeface closest to the font style (font weight, font width, and slant). When the object is no longer needed, use {@link OH_Drawing_TypefaceDestroy} to release it.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param fontStyleSet Pointer to an {@link OH_Drawing_FontStyleSet} object. @param fontStyleStruct Font style, including the font weight, width, and slant. @return Pointer to the corresponding typeface object {@link OH_Drawing_Typeface}, or NULL if matching fails. @since 12 @version 1.0