pub unsafe extern "C" fn OH_Drawing_SetTypographyTextFontWeight(
style: *mut OH_Drawing_TypographyStyle,
weight: c_int,
)Expand description
@brief Sets the default font weight of the typography style. Before OpenHarmony 6.1, only variable fonts in system fonts support font weight adjustment. Starting from OpenHarmony 6.1, both system fonts and variable fonts in third-party registered fonts support font weight adjustment. For non- variable fonts, the font weight does not change when the weight value is set to less than semi-bold, and a pseudo- bold effect may be triggered when the weight value is set to semi-bold or greater.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param style Pointer to the {@link OH_Drawing_TypographyStyle} object, which is obtained from
{@link OH_Drawing_CreateTypographyStyle}.
@param weight Font weight.
For details about the available options, see {@link OH_Drawing_FontWeight}.
@since 12
@version 1.0