pub unsafe extern "C" fn OH_Drawing_SetTextStyleFontWeight(
style: *mut OH_Drawing_TextStyle,
fontWeight: c_int,
)Expand description
@brief Sets the font weight. 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 OH_Drawing_TextStyle object, which is obtained from
{@link OH_Drawing_CreateTextStyle}.
@param fontWeight Font weight.
For details about the available options, see {@link OH_Drawing_FontWeight}.
@since 8
@version 1.0