Skip to main content

OH_Drawing_SetTextStyleLocale

Function OH_Drawing_SetTextStyleLocale 

Source
pub unsafe extern "C" fn OH_Drawing_SetTextStyleLocale(
    style: *mut OH_Drawing_TextStyle,
    locale: *const c_char,
)
Expand description

@brief Sets the locale 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 locale Language type. The data type is a pointer to char. The format follows the BCP 47 language tag standard. For example, ‘en’ represents English, ‘zh-Hans’ represents Simplified Chinese, and ‘zh-Hant’ represents Traditional Chinese. If not specified, the default locale is ‘zh-Hans’. @since 8 @version 1.0