Skip to main content

OH_Drawing_SetTypographyTextFontHeight

Function OH_Drawing_SetTypographyTextFontHeight 

Source
pub unsafe extern "C" fn OH_Drawing_SetTypographyTextFontHeight(
    style: *mut OH_Drawing_TypographyStyle,
    fontHeight: f64,
)
Expand description

@brief Sets the font height for text typography as a multiple of the current font size.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the {@link OH_Drawing_TypographyStyle} object, which is obtained from {@link OH_Drawing_CreateTypographyStyle}. @param fontHeight Font height, which is a multiple of the current font size. If the value is less than 0, it is treated as 0. @since 12 @version 1.0