Home
last modified time | relevance | path

Searched refs:fontWeight_ (Results 1 – 25 of 26) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dtext_style.cpp24 …: fontFamilies_(fontFamilies), fontSize_(fontSize), fontWeight_(fontWeight), fontStyle_(fontStyle), in TextStyle()
35fontWeight_ == rhs.fontWeight_ && fontStyle_ == rhs.fontStyle_ && textBaseline_ == rhs.textBaselin… in operator ==()
99 JSON_STRING_PUT_INT(jsonValue, fontWeight_); in ToString()
H A Dpopup_param.h326 fontWeight_ = fontWeight; in SetFontWeight()
331 return fontWeight_; in GetFontWeight()
525 std::optional<FontWeight> fontWeight_; variable
H A Dtext_style.h343 return fontWeight_; in GetFontWeight()
348 fontWeight_ = fontWeight; in SetFontWeight()
786 FontWeight fontWeight_ { FontWeight::NORMAL };
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/common/
H A Dtypography_style.cpp24 .fontWeight_ = fontWeight_, in GetTextStyle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/search/
H A Dsearch_theme.h73 …theme->fontWeight_ = FontWeight(static_cast<int32_t>(pattern->GetAttr<double>("search_font_weight"… in ParsePattern()
172 return fontWeight_; in GetFontWeight()
278 FontWeight fontWeight_ = FontWeight::NORMAL; variable
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_text_typography_test.cpp258 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W100);
264 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W200);
270 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W300);
276 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W400);
282 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W500);
288 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W600);
294 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W700);
300 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W800);
306 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W900);
312 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontWeight_, FontWeight::W400);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_content_modifier.cpp282 if (fontWeight_.has_value() && fontWeightFloat_) { in ModifyTextStyle()
329 fontWeight_ = ConvertFontWeight(value); in SetFontWeight()
479 if (fontWeight_.has_value() && fontWeightFloat_ && in NeedMeasureUpdate()
480 !NearEqual(static_cast<float>(fontWeight_.value()), fontWeightFloat_->Get())) { in NeedMeasureUpdate()
H A Dtext_field_content_modifier.h95 std::optional<FontWeight> fontWeight_; variable
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_field_pattern_testtwo.cpp726 theme->fontWeight_ = FontWeight::BOLD;
728 theme->fontWeight_ = FontWeight::W100;
733 theme->fontWeight_ = FontWeight::W200;
735 theme->fontWeight_ = FontWeight::W300;
737 theme->fontWeight_ = FontWeight::W500;
739 theme->fontWeight_ = FontWeight::W600;
741 theme->fontWeight_ = FontWeight::W700;
743 theme->fontWeight_ = FontWeight::W800;
745 theme->fontWeight_ = FontWeight::W900;
H A Dtext_input_base.cpp29 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
H A Dtext_input_wordbreak_test.cpp139 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
H A Dtext_area_menu_test.cpp133 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
H A Dtext_input_area_model_test.cpp145 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
H A Dtext_area_test.cpp141 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
H A Dtext_input_modify_test.cpp144 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
H A Dtext_area_decoration_test.cpp123 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Dselect_theme.h133 theme->fontWeight_ = FontWeight::NORMAL; in ParseNewPattern()
334 theme->fontWeight_ = fontWeight_; in ClonePartOne()
551 return fontWeight_; in GetFontWeight()
555 fontWeight_ = value; in SetFontWeight()
1174 FontWeight fontWeight_ { FontWeight::NORMAL };
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_text_style.h123 TestingFontWeight fontWeight_ = TestingFontWeight::W400; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_content_modifier.cpp539 if (fontWeight_.has_value() && fontWeightFloat_) { in ModifyFontWeightInTextStyle()
652 if (fontWeight_.has_value() && fontWeightFloat_ && in UpdateFontWeightMeasureFlag()
654 …static_cast<float>(static_cast<int>(fontWeight_.value())), lastFontWeight_, fontWeightFloat_->Get(… in UpdateFontWeightMeasureFlag()
778 fontWeight_ = ConvertFontWeight(value); in SetFontWeight()
780 fontWeight_ = std::nullopt; in SetFontWeight()
H A Dtext_content_modifier.h161 std::optional<FontWeight> fontWeight_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Dtextfield_theme.h83 theme->fontWeight_ = in ParsePatternSubFirstPart()
252 return fontWeight_; in GetFontWeight()
650 FontWeight fontWeight_ = FontWeight::NORMAL; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_paint_method.cpp325 dateTextStyle.fontWeight_ = static_cast<RSFontWeight>(dayFontWeight_); in InitTextStyle()
328 lunarTextStyle.fontWeight_ = static_cast<RSFontWeight>(lunarDayFontWeight_); in InitTextStyle()
414 offWorkTextStyle.fontWeight_ = static_cast<RSFontWeight>(workStateFontWeight_); in SetOffWorkTextStyle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddrawing_prop_convertor.cpp224 rsTextStyle.fontWeight_ = ToRSFontWeight(textStyle.GetFontWeight()); in ToRSTextStyle()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_base.cpp284 textPaintMethod.textContentModifier_->fontWeight_ = FontWeight::LIGHTER; in SetPaintMethodModifier()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_field/
H A Dtext_field_test.cpp108 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()

12