Skip to main content

OH_Drawing_TextStyleSetBaselineShift

Function OH_Drawing_TextStyleSetBaselineShift 

Source
pub unsafe extern "C" fn OH_Drawing_TextStyleSetBaselineShift(
    style: *mut OH_Drawing_TextStyle,
    lineShift: f64,
)
Expand description

@brief Sets a baseline drift for a text style.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the OH_Drawing_TextStyle object, which is obtained from {@link OH_Drawing_CreateTextStyle}. @param lineShift Baseline offset of the text. A positive value shifts upward, and a negative value shifts downward, in px. @since 12 @version 1.0