Skip to main content

OH_Drawing_SetTypographyTextFontStyle

Function OH_Drawing_SetTypographyTextFontStyle 

Source
pub unsafe extern "C" fn OH_Drawing_SetTypographyTextFontStyle(
    style: *mut OH_Drawing_TypographyStyle,
    fontStyle: c_int,
)
Expand description

@brief Sets the default font style for a typography style.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the typography style object {@link OH_Drawing_TypographyStyle}, obtained by {@link OH_Drawing_CreateTypographyStyle}. @param fontStyle Font style. The value 1 indicates italic, and 0 or other values indicate non-italic. For details about the available options, see {@link OH_Drawing_FontStyle}. @since 12 @version 1.0