pub unsafe extern "C" fn OH_Drawing_TextStyleAddFontVariation(
style: *mut OH_Drawing_TextStyle,
axis: *const c_char,
value: f32,
)Expand description
@brief Adds a font variation. This function takes effect only when the corresponding font file (.ttf file) supports variable adjustment. Otherwise, calling this function does not take effect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the OH_Drawing_TextStyle object, which is obtained from {@link OH_Drawing_CreateTextStyle}. @param axis Pointer to the key in the font variation key-value pair. Currently, only ‘wght’ is supported, indicating the font weight. @param value Value of the font variation key-value pair. Currently, the value range of ‘wght’ for the default font is [0,900]. @since 12 @version 1.0