Home
last modified time | relevance | path

Searched refs:fontWeightValue (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/font/
H A Dconstants_converter.cpp488 auto fontWeightValue = (static_cast<int32_t>( in ConvertTxtStyle() local
492 fontWeightValue = fontWeightValue * pipelineContext->GetFontWeightScale(); in ConvertTxtStyle()
495 fontWeightValue = textStyle.GetVariableFontWeight(); in ConvertTxtStyle()
496 …if (LessNotEqual(fontWeightValue, MIN_FONT_WEIGHT) || GreatNotEqual(fontWeightValue, MAX_FONT_WEIG… in ConvertTxtStyle()
497 fontWeightValue = DEFAULT_FONT_WEIGHT; in ConvertTxtStyle()
500 txtStyle.fontVariations.SetAxisValue(FONTWEIGHT, fontWeightValue); in ConvertTxtStyle()
719 auto fontWeightValue = (static_cast<int32_t>( in ConvertTxtStyle() local
723 fontWeightValue = fontWeightValue * pipelineContext->GetFontWeightScale(); in ConvertTxtStyle()
726 fontWeightValue = textStyle.GetVariableFontWeight(); in ConvertTxtStyle()
727 …if (LessNotEqual(fontWeightValue, MIN_FONT_WEIGHT) || GreatNotEqual(fontWeightValue, MAX_FONT_WEIG… in ConvertTxtStyle()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_badge.cpp111 JSRef<JSVal> fontWeightValue = value->GetProperty("fontWeight"); in CreateBadgeParameters() local
180 if (fontWeightValue->IsNumber()) { in CreateBadgeParameters()
181 fontWeight = std::to_string(fontWeightValue->ToNumber<int32_t>()); in CreateBadgeParameters()
183 if (!ParseJsString(fontWeightValue, fontWeight)) { in CreateBadgeParameters()
H A Djs_view_abstract.cpp833 auto fontWeightValue = fontObj->GetProperty(static_cast<int32_t>(ArkUIIndex::WEIGHT)); in SetPopupMessageOptions() local
834 if (fontWeightValue->IsString()) { in SetPopupMessageOptions()
836 popupParam->SetFontWeight(ConvertStrToFontWeight(fontWeightValue->ToString())); in SetPopupMessageOptions()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_drag/
H A Dtext_drag_test_ng.cpp104 if (textProperty.fontWeightValue.has_value()) { in SetTextProperty()
105 textModel.SetFontWeight(textProperty.fontWeightValue.value()); in SetTextProperty()
H A Dtext_drag_test_ng.h34 std::optional<Ace::FontWeight> fontWeightValue = std::nullopt; member
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_base.cpp192 if (testProperty.fontWeightValue.has_value()) { in CreateTextParagraph()
193 textModel.SetFontWeight(testProperty.fontWeightValue.value()); in CreateTextParagraph()
H A Dtext_base.h187 std::optional<Ace::FontWeight> fontWeightValue = std::nullopt; member
H A Dtext_testtwo_ng.cpp1057 testProperty.fontWeightValue = std::make_optional(FONT_WEIGHT_VALUE);
H A Dtext_test_ng.cpp63 testProperty.fontWeightValue = std::make_optional(FONT_WEIGHT_VALUE);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/button/
H A Dbutton_content_modifier_test_ng.cpp79 std::optional<Ace::FontWeight> fontWeightValue = std::nullopt; member
226 if (testProperty.fontWeightValue.has_value()) { in CreateLabelButtonParagraph()
227 buttonModelNG.SetFontWeight(testProperty.fontWeightValue.value()); in CreateLabelButtonParagraph()
268 if (testProperty.fontWeightValue.has_value()) { in CreateChildButtonParagraph()
269 buttonModelNG.SetFontWeight(testProperty.fontWeightValue.value()); in CreateChildButtonParagraph()
H A Dbutton_test_ng.cpp97 std::optional<Ace::FontWeight> fontWeightValue = std::nullopt; member
254 if (testProperty.fontWeightValue.has_value()) { in CreateLabelButtonParagraph()
255 buttonModelNG.SetFontWeight(testProperty.fontWeightValue.value()); in CreateLabelButtonParagraph()
296 if (testProperty.fontWeightValue.has_value()) { in CreateChildButtonParagraph()
297 buttonModelNG.SetFontWeight(testProperty.fontWeightValue.value()); in CreateChildButtonParagraph()
422 testProperty.fontWeightValue = std::make_optional(BUTTON_BOLD_FONT_WEIGHT_VALUE);
H A Dbutton_extend_test_ng.cpp84 std::optional<Ace::FontWeight> fontWeightValue = std::nullopt; member
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/symbol/
H A Dsymbol_test_ng.cpp61 std::optional<Ace::FontWeight> fontWeightValue = std::nullopt; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/
H A Drosen_render_custom_paint.cpp643 auto fontWeightValue = (static_cast<int32_t>( in MeasureTextInner() local
647 fontWeightValue = fontWeightValue * pipelineContext->GetFontWeightScale(); in MeasureTextInner()
649 txtStyle.fontVariations.SetAxisValue(FONTWEIGHT, fontWeightValue); in MeasureTextInner()
777 auto fontWeightValue = (static_cast<int32_t>( in MeasureTextSizeInner() local
781 fontWeightValue = fontWeightValue * pipelineContext->GetFontWeightScale(); in MeasureTextSizeInner()
783 txtStyle.fontVariations.SetAxisValue(FONTWEIGHT, fontWeightValue); in MeasureTextSizeInner()