/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | utils.cpp | 25 if (weight == FontWeight::W100) { in GetTextStyleInJson() 27 } else if (weight == FontWeight::W200) { in GetTextStyleInJson() 29 } else if (weight == FontWeight::W300) { in GetTextStyleInJson() 31 } else if (weight == FontWeight::W400) { in GetTextStyleInJson() 33 } else if (weight == FontWeight::W500) { in GetTextStyleInJson() 35 } else if (weight == FontWeight::W600) { in GetTextStyleInJson() 37 } else if (weight == FontWeight::W700) { in GetTextStyleInJson() 39 } else if (weight == FontWeight::W800) { in GetTextStyleInJson() 41 } else if (weight == FontWeight::W900) { in GetTextStyleInJson()
|
H A D | textinput_composed_element.cpp | 106 if (weight == FontWeight::W100) { in GetPlaceholderFont() 108 } else if (weight == FontWeight::W200) { in GetPlaceholderFont() 110 } else if (weight == FontWeight::W300) { in GetPlaceholderFont() 112 } else if (weight == FontWeight::W400) { in GetPlaceholderFont() 114 } else if (weight == FontWeight::W500) { in GetPlaceholderFont() 116 } else if (weight == FontWeight::W600) { in GetPlaceholderFont() 118 } else if (weight == FontWeight::W700) { in GetPlaceholderFont() 120 } else if (weight == FontWeight::W800) { in GetPlaceholderFont() 122 } else if (weight == FontWeight::W900) { in GetPlaceholderFont() 176 render ? render->GetEditingStyle().GetFontWeight() : FontWeight in GetTextInputFontWeight() [all...] |
H A D | textarea_composed_element.cpp | 102 if (weight == FontWeight::W100) { in GetPlaceholderFont() 104 } else if (weight == FontWeight::W200) { in GetPlaceholderFont() 106 } else if (weight == FontWeight::W300) { in GetPlaceholderFont() 108 } else if (weight == FontWeight::W400) { in GetPlaceholderFont() 110 } else if (weight == FontWeight::W500) { in GetPlaceholderFont() 112 } else if (weight == FontWeight::W600) { in GetPlaceholderFont() 114 } else if (weight == FontWeight::W700) { in GetPlaceholderFont() 116 } else if (weight == FontWeight::W800) { in GetPlaceholderFont() 118 } else if (weight == FontWeight::W900) { in GetPlaceholderFont() 180 render ? render->GetEditingStyle().GetFontWeight() : FontWeight in GetTextFontWeight() [all...] |
H A D | utils.h | 441 inline std::string ConvertWrapFontWeightToStirng(FontWeight fontWeight) in ConvertWrapFontWeightToStirng() 443 static const LinearEnumMapNode<FontWeight, std::string> fontWeightTable[] = { in ConvertWrapFontWeightToStirng() 444 { FontWeight::W100, "100" }, in ConvertWrapFontWeightToStirng() 445 { FontWeight::W200, "200" }, in ConvertWrapFontWeightToStirng() 446 { FontWeight::W300, "300" }, in ConvertWrapFontWeightToStirng() 447 { FontWeight::W400, "400" }, in ConvertWrapFontWeightToStirng() 448 { FontWeight::W500, "500" }, in ConvertWrapFontWeightToStirng() 449 { FontWeight::W600, "600" }, in ConvertWrapFontWeightToStirng() 450 { FontWeight::W700, "700" }, in ConvertWrapFontWeightToStirng() 451 { FontWeight in ConvertWrapFontWeightToStirng() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | text_style.h | 36 enum class FontWeight { class 248 TextStyle(const std::vector<std::string>& fontFamilies, double fontSize, FontWeight fontWeight, FontStyle fontStyle, 341 FontWeight GetFontWeight() const in GetFontWeight() 346 void SetFontWeight(FontWeight fontWeight) in SetFontWeight() 786 FontWeight fontWeight_ { FontWeight::NORMAL }; 826 inline std::pair<bool, FontWeight> ParseFontWeight(const std::string& weight, in ParseFontWeight() argument 827 FontWeight defaultFontWeight = FontWeight::NORMAL) in ParseFontWeight() 829 static const LinearMapNode<FontWeight> fontWeightTabl in ParseFontWeight() 851 StringToFontWeight(const std::string& weight, FontWeight defaultFontWeight = FontWeight::NORMAL) StringToFontWeight() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_symbol_glyph_modifier.cpp | 21 FontWeight ConvertStrToFontWeight(ArkUI_CharPtr weight, FontWeight defaultFontWeight = FontWeight::NORMAL) in ConvertStrToFontWeight() argument 27 FontWeight ConvertIntToFontWeight(ArkUI_Int32 weight) in ConvertIntToFontWeight() 29 static const std::unordered_map<ArkUI_Int32, FontWeight> fontWeightMap = { in ConvertIntToFontWeight() 30 {100, FontWeight::W100}, in ConvertIntToFontWeight() 31 {200, FontWeight::W200}, in ConvertIntToFontWeight() 32 {300, FontWeight::W300}, in ConvertIntToFontWeight() 33 {400, FontWeight::W400}, in ConvertIntToFontWeight() 34 {500, FontWeight in ConvertIntToFontWeight() [all...] |
H A D | node_symbol_span_modifier.cpp | 21 FontWeight ConvertStrToFontWeight(ArkUI_CharPtr weight, FontWeight defaultFontWeight = FontWeight::NORMAL) in ConvertStrToFontWeight() argument 87 SymbolSpanModelNG::SetFontWeight(frameNode, static_cast<FontWeight>(weight)); in SetSymbolSpanFontWeight() 94 SymbolSpanModelNG::SetFontWeight(frameNode, Ace::FontWeight::NORMAL); in ResetSymbolSpanFontWeight()
|
/foundation/arkui/ace_engine/frameworks/core/components/font/ |
H A D | constants_converter.cpp | 44 txt::FontWeight ConvertTxtFontWeight(FontWeight fontWeight) in ConvertTxtFontWeight() 46 txt::FontWeight convertValue; in ConvertTxtFontWeight() 48 case FontWeight::W100: in ConvertTxtFontWeight() 49 case FontWeight::LIGHTER: in ConvertTxtFontWeight() 50 convertValue = txt::FontWeight::w100; in ConvertTxtFontWeight() 52 case FontWeight::W200: in ConvertTxtFontWeight() 53 convertValue = txt::FontWeight::w200; in ConvertTxtFontWeight() 55 case FontWeight::W300: in ConvertTxtFontWeight() 56 convertValue = txt::FontWeight in ConvertTxtFontWeight() [all...] |
H A D | constants_converter.h | 35 enum class FontWeight; 45 enum class FontWeight; 65 enum class FontWeight; 80 txt::FontWeight ConvertTxtFontWeight(FontWeight fontWeight); 111 OHOS::Rosen::FontWeight ConvertTxtFontWeight(FontWeight fontWeight);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | drawing_prop_convertor.cpp | 106 RSFontWeight ToRSFontWeight(FontWeight fontWeight) in ToRSFontWeight() 110 case FontWeight::W100: in ToRSFontWeight() 111 case FontWeight::LIGHTER: in ToRSFontWeight() 114 case FontWeight::W200: in ToRSFontWeight() 117 case FontWeight::W300: in ToRSFontWeight() 120 case FontWeight::W400: in ToRSFontWeight() 121 case FontWeight::NORMAL: in ToRSFontWeight() 122 case FontWeight::REGULAR: in ToRSFontWeight() 125 case FontWeight::W500: in ToRSFontWeight() 126 case FontWeight in ToRSFontWeight() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/texgine/export/texgine/ |
H A D | typography_style.h | 38 FontWeight fontWeight = FontWeight::W400; 60 FontWeight fontWeight = FontWeight::W400;
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | swiper_indicator_layout_property.h | 35 ACE_DEFINE_PROPERTY_GROUP_ITEM(FontWeight, FontWeight); 36 ACE_DEFINE_PROPERTY_GROUP_ITEM(SelectedFontWeight, FontWeight); 110 ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP(DigitIndicatorLayoutStyle, FontWeight, FontWeight, 112 ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP(DigitIndicatorLayoutStyle, SelectedFontWeight, FontWeight,
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_row_layout_property.h | 78 GetDisappearWeight().value_or(FontWeight::NORMAL)).c_str()); 86 normalFont->Put("weight", V2::ConvertWrapFontWeightToStirng(GetWeight().value_or(FontWeight::NORMAL)).c_str()); 95 GetSelectedWeight().value_or(FontWeight::NORMAL)).c_str()); 155 DisappearTextStyle, FontWeight, DisappearWeight, FontWeight, PROPERTY_UPDATE_MEASURE); 167 TextStyle, FontWeight, Weight, FontWeight, PROPERTY_UPDATE_MEASURE); 179 SelectedTextStyle, FontWeight, SelectedWeight, FontWeight, PROPERTY_UPDATE_MEASURE);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | timepicker_layout_property.h | 71 GetDisappearWeight().value_or(FontWeight::NORMAL)).c_str()); 79 normalFont->Put("weight", V2::ConvertWrapFontWeightToStirng(GetWeight().value_or(FontWeight::NORMAL)).c_str()); 88 GetSelectedWeight().value_or(FontWeight::NORMAL)).c_str()); 115 DisappearTextStyle, FontWeight, DisappearWeight, FontWeight, PROPERTY_UPDATE_MEASURE); 124 ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP_ITEM(TextStyle, FontWeight, Weight, FontWeight, PROPERTY_UPDATE_MEASURE); 136 SelectedTextStyle, FontWeight, SelectedWeight, FontWeight, PROPERTY_UPDATE_MEASURE);
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/enum_napi/ |
H A D | text_enum_napi.cpp | 47 { "W100", static_cast<size_t>(FontWeight::W100) },
48 { "W200", static_cast<size_t>(FontWeight::W200) },
49 { "W300", static_cast<size_t>(FontWeight::W300) },
50 { "W400", static_cast<size_t>(FontWeight::W400) },
51 { "W500", static_cast<size_t>(FontWeight::W500) },
52 { "W600", static_cast<size_t>(FontWeight::W600) },
53 { "W700", static_cast<size_t>(FontWeight::W700) },
54 { "W800", static_cast<size_t>(FontWeight::W800) },
55 { "W900", static_cast<size_t>(FontWeight::W900) },
156 { "FontWeight", g_fontWeigh [all...] |
/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | drawing_prop_convertor_test_ng.cpp | 52 const FontWeight FONT_WEIGHT {0}; 247 auto testFontWeight = static_cast<FontWeight>(index); in HWTEST_F() 250 case FontWeight::W100: in HWTEST_F() 251 case FontWeight::LIGHTER: in HWTEST_F() 254 case FontWeight::W200: in HWTEST_F() 257 case FontWeight::W300: in HWTEST_F() 260 case FontWeight::W400: in HWTEST_F() 261 case FontWeight::NORMAL: in HWTEST_F() 262 case FontWeight::REGULAR: in HWTEST_F() 265 case FontWeight in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/txt/ |
H A D | paragraph_style.h | 54 FontWeight fontWeight = FontWeight::W400; 64 FontWeight strutFontWeight = FontWeight::W400;
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/ |
H A D | calendar_paint_method.h | 148 FontWeight dayFontWeight_ = FontWeight::W500; 149 FontWeight lunarDayFontWeight_ = FontWeight::W500; 150 FontWeight workStateFontWeight_ = FontWeight::W400;
|
/foundation/arkui/ace_engine/adapter/ohos/capability/html/ |
H A D | span_to_html.cpp | 49 std::string SpanToHtml::FontWeightToHtml(const std::optional<FontWeight>& value) in FontWeightToHtml() 51 static const LinearEnumMapNode<FontWeight, std::string> table[] = { in FontWeightToHtml() 52 { FontWeight::W100, "100" }, in FontWeightToHtml() 53 { FontWeight::W200, "200" }, in FontWeightToHtml() 54 { FontWeight::W300, "300" }, in FontWeightToHtml() 55 { FontWeight::W400, "400" }, in FontWeightToHtml() 56 { FontWeight::W500, "500" }, in FontWeightToHtml() 57 { FontWeight::W600, "600" }, in FontWeightToHtml() 58 { FontWeight::W700, "700" }, in FontWeightToHtml() 59 { FontWeight in FontWeightToHtml() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | span_test_ng.cpp | 63 "\"FontWeight.Normal\",\"family\":\"HarmonyOS Sans\"}"; 65 R"({"style":"FontStyle.Italic","size":"20.10px","weight":"FontWeight.Bold","family":"cursive"})"; 141 spanModelNG.SetFontWeight(FontWeight::LIGHTER); in HWTEST_F() 142 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::LIGHTER); in HWTEST_F() 143 spanModelNG.SetFontWeight(FontWeight::REGULAR); in HWTEST_F() 144 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::REGULAR); in HWTEST_F() 145 spanModelNG.SetFontWeight(FontWeight::NORMAL); in HWTEST_F() 146 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight::NORMAL); in HWTEST_F() 147 spanModelNG.SetFontWeight(FontWeight::MEDIUM); in HWTEST_F() 148 EXPECT_EQ(spanNode->GetFontWeight().value(), FontWeight in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_layout_property.h | 123 GetDisappearWeight().value_or(FontWeight::NORMAL)).c_str()); 131 normalFont->Put("weight", V2::ConvertWrapFontWeightToStirng(GetWeight().value_or(FontWeight::NORMAL)).c_str()); 140 GetSelectedWeight().value_or(FontWeight::NORMAL)).c_str()); 165 DisappearTextStyle, FontWeight, DisappearWeight, FontWeight, PROPERTY_UPDATE_MEASURE); 174 ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP_ITEM(TextStyle, FontWeight, Weight, FontWeight, PROPERTY_UPDATE_MEASURE); 186 SelectedTextStyle, FontWeight, SelectedWeight, FontWeight, PROPERTY_UPDATE_MEASURE);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_content_modifier.cpp | 30 const FontWeight FONT_WEIGHT_CONVERT_MAP[] = { 31 FontWeight::W100, 32 FontWeight::W200, 33 FontWeight::W300, 34 FontWeight::W400, 35 FontWeight::W500, 36 FontWeight::W600, 37 FontWeight::W700, 38 FontWeight::W800, 39 FontWeight [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | menu_layout_property.h | 40 ACE_DEFINE_PROPERTY_GROUP_ITEM(FontWeight, FontWeight); 122 ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP(MenuItemFontStyle, FontWeight, FontWeight, PROPERTY_UPDATE_MEASURE);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/ |
H A D | menu_item_model_ng.h | 31 void SetFontWeight(FontWeight weight) override; 36 void SetLabelFontWeight(FontWeight weight) override; 46 static void SetLabelFontWeight(FrameNode* frameNode, FontWeight weight); 51 static void SetFontWeight(FrameNode* frameNode, FontWeight weight);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | indexer_model_impl.h | 31 void SetSelectedFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, 33 void SetPopupFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, 35 void SetFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, 43 void SetTextStyle(TextStyle& textStyle, std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight,
|