Skip to main content

OH_Drawing_TypographyStyleSetHintsEnabled

Function OH_Drawing_TypographyStyleSetHintsEnabled 

Source
pub unsafe extern "C" fn OH_Drawing_TypographyStyleSetHintsEnabled(
    style: *mut OH_Drawing_TypographyStyle,
    hintsEnabled: bool,
)
Expand description

@brief Sets whether to enable font hinting for a typography style. Font hinting is used to improve the readability and appearance of small-sized text when rendering it.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the typography style object {@link OH_Drawing_TypographyStyle}, obtained by {@link OH_Drawing_CreateTypographyStyle}. @param hintsEnabled Whether to enable font hinting. true: enabled; false: disabled. @since 12 @version 1.0