Home
last modified time | relevance | path

Searched refs:FontWeight (Results 1 - 25 of 381) sorted by relevance

12345678910>>...16

/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dutils.cpp25 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 Dtextinput_composed_element.cpp106 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 Dtextarea_composed_element.cpp102 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 Dutils.h441 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 Dtext_style.h36 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 Dnode_symbol_glyph_modifier.cpp21 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 Dnode_symbol_span_modifier.cpp21 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 Dconstants_converter.cpp44 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 Dconstants_converter.h35 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 Ddrawing_prop_convertor.cpp106 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 Dtypography_style.h38 FontWeight fontWeight = FontWeight::W400;
60 FontWeight fontWeight = FontWeight::W400;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_indicator_layout_property.h35 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 Ddatepicker_row_layout_property.h78 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 Dtimepicker_layout_property.h71 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 Dtext_enum_napi.cpp47 { "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 Ddrawing_prop_convertor_test_ng.cpp52 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 Dparagraph_style.h54 FontWeight fontWeight = FontWeight::W400;
64 FontWeight strutFontWeight = FontWeight::W400;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_paint_method.h148 FontWeight dayFontWeight_ = FontWeight::W500;
149 FontWeight lunarDayFontWeight_ = FontWeight::W500;
150 FontWeight workStateFontWeight_ = FontWeight::W400;
/foundation/arkui/ace_engine/adapter/ohos/capability/html/
H A Dspan_to_html.cpp49 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 Dspan_test_ng.cpp63 "\"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 Dtextpicker_layout_property.h123 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 Dtext_field_content_modifier.cpp30 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 Dmenu_layout_property.h40 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 Dmenu_item_model_ng.h31 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 Dindexer_model_impl.h31 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,

Completed in 13 milliseconds

12345678910>>...16