Skip to main content

OH_Drawing_FontSetFakeBoldText

Function OH_Drawing_FontSetFakeBoldText 

Source
pub unsafe extern "C" fn OH_Drawing_FontSetFakeBoldText(
    font: *mut OH_Drawing_Font,
    isFakeBoldText: bool,
)
Expand description

@brief Sets fake bold for a font by increasing the stroke width. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If font is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param font Pointer to an OH_Drawing_Font object. @param isFakeBoldText Whether to set fake bold. The value true means to set fake bold, and false means the opposite. @since 11 @version 1.0