Skip to main content

OH_Drawing_SetTypographyTextLocale

Function OH_Drawing_SetTypographyTextLocale 

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

@brief Sets the locale for a typography style.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the {@link OH_Drawing_TypographyStyle} object, which is obtained from {@link OH_Drawing_CreateTypographyStyle}. @param locale Locale. The data type is a pointer to char. The format follows the BCP 47 language tag standard, for example, ‘en’ for English, ‘zh-Hans’ for Simplified Chinese, and ‘zh-Hant’ for Traditional Chinese. If not specified, the default locale is ‘zh-Hans’. @since 12 @version 1.0