OH_ArkUI_FontWeightConfigs
typedef struct OH_ArkUI_FontWeightConfigs OH_ArkUI_FontWeightConfigs
Overview
Defines the font weight configuration of text. OH_ArkUI_FontWeightConfigs_Create can be used to create a text font weight configuration object. OH_ArkUI_FontWeightConfigs_Destroy can be used to destroy the text font weight configuration object. After the object is created, OH_ArkUI_FontWeightConfigs_SetEnableVariableFontWeight can be used to set whether to enable variable font weight adjustment. After the object is created, OH_ArkUI_FontWeightConfigs_GetEnableVariableFontWeight can be used to check whether variable font weight adjustment is enabled. After the object is created, OH_ArkUI_FontWeightConfigs_SetEnableDeviceFontWeightCategory can be used to set whether the text font weight is updated with the font weight level of the device. After the object is created, OH_ArkUI_FontWeightConfigs_GetEnableDeviceFontWeightCategory can be used to check whether the text font weight is updated with the font weight level of the device. When the object is used and is not a null pointer, if the user does not explicitly make the configuration through the API, the default values are used. When the object is a null pointer, the default values are not used, and the text font weight behavior is the same as that of the parent component.
Since: 24
Related module: ArkUI_NativeModule
Header file: native_type.h
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 arkts-apis-uicontext-contextmenucontroller
openharmony 鸿蒙 errorcode-canvas
openharmony 鸿蒙 capi-oh-nativexcomponent-native-xcomponent-oh-nativexcomponent
openharmony 鸿蒙 errorcode-bindSheet
openharmony 鸿蒙 js-apis-arkui-uiExtension-sys
openharmony 鸿蒙 capi-arkui-accessibility-arkui-accessibilityeventinfo
openharmony 鸿蒙 capi-arkui-rendernodeutils
openharmony 鸿蒙 js-apis-arkui-node
openharmony 鸿蒙 capi-native-node-h
openharmony 鸿蒙 capi-arkui-nativemodule-arkui-listitemswipeactionitem