Signed-off-by: sodanotgreen <limengzheng@huawei.com>
This commit is contained in:
sodanotgreen
2025-04-23 15:04:08 +08:00
parent a346f35a5c
commit 9a8cf1c50b
@@ -136,6 +136,9 @@ napi_value CreateJsConfiguration(napi_env env, const AppExecFwk::Configuration&
napi_set_named_property(env, object, "fontSizeScale",
CreateJsValue(env, fontSizeScale == "" ? 1.0 : std::stod(fontSizeScale)));
napi_set_named_property(env, object, "fontId", CreateJsValue(env,
configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_ID)));
std::string fontWeightScale = configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_WEIGHT_SCALE);
napi_set_named_property(env, object, "fontWeightScale",
CreateJsValue(env, fontWeightScale == "" ? 1.0 : std::stod(fontWeightScale)));