Skip to main content

OH_Drawing_SetTypographyTextFontSize

Function OH_Drawing_SetTypographyTextFontSize 

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

@brief Sets the font size for text.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the typography style {@link OH_Drawing_TypographyStyle}, which is obtained from {@link OH_Drawing_CreateTypographyStyle}. @param fontSize Font size (greater than 0), in px. @since 12 @version 1.0