Skip to main content

OH_Drawing_FontSetSubpixel

Function OH_Drawing_FontSetSubpixel 

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

@brief Sets whether to use sub-pixel rendering for a font. 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 the {@link OH_Drawing_Font} object. @param isSubpixel Whether sub-pixel rendering is used for a font. true means yes; false otherwise. @since 12 @version 1.0