/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_search_ffi.cpp | 41 const char* fontWeight, in handleFont() 48 font.fontWeight = ConvertStrToFontWeight(fontWeight); in handleFont() 91 double fontSize, int32_t sizeUnit, const char* fontWeight, int32_t fontStyle, const char* fontFamily) in FfiOHOSAceFrameworkSearchSetPlaceholderFont() 98 handleFont(fontSize, sizeUnit, fontWeight, fontStyle, fontFamily, font); in FfiOHOSAceFrameworkSearchSetPlaceholderFont() 103 double fontSize, int32_t sizeUnit, const char* fontWeight, int32_t fontStyle, const char* fontFamily) in FfiOHOSAceFrameworkSearchSetTextFont() 110 handleFont(fontSize, sizeUnit, fontWeight, fontStyle, fontFamily, font); in FfiOHOSAceFrameworkSearchSetTextFont() 39 handleFont(double fontSize, int32_t sizeUnit, const char* fontWeight, int32_t fontStyle, const char* fontFamily, Font& font) handleFont() argument 90 FfiOHOSAceFrameworkSearchSetPlaceholderFont( double fontSize, int32_t sizeUnit, const char* fontWeight, int32_t fontStyle, const char* fontFamily) FfiOHOSAceFrameworkSearchSetPlaceholderFont() argument 102 FfiOHOSAceFrameworkSearchSetTextFont( double fontSize, int32_t sizeUnit, const char* fontWeight, int32_t fontStyle, const char* fontFamily) FfiOHOSAceFrameworkSearchSetTextFont() argument
|
H A D | cj_alphabet_indexer_ffi.cpp | 64 std::optional<FontWeight> fontWeight = FontWeight::REGULAR; in FfiOHOSAceFrameworkAlphabetIndexerSelectedFont() local 67 IndexerModel::GetInstance()->SetSelectedFont(fontSize, fontWeight, fontFamily, fontStyle); in FfiOHOSAceFrameworkAlphabetIndexerSelectedFont() 73 std::optional<FontWeight> fontWeight = FontWeight::REGULAR; in FfiOHOSAceFrameworkAlphabetIndexerPopupFont() local 76 IndexerModel::GetInstance()->SetPopupFont(fontSize, fontWeight, fontFamily, fontStyle); in FfiOHOSAceFrameworkAlphabetIndexerPopupFont() 82 std::optional<FontWeight> fontWeight = FontWeight::REGULAR; in FfiOHOSAceFrameworkAlphabetIndexerFont() local 85 IndexerModel::GetInstance()->SetFont(fontSize, fontWeight, fontFamily, fontStyle); in FfiOHOSAceFrameworkAlphabetIndexerFont()
|
H A D | cj_search_ffi.h | 35 double fontSize, int32_t sizeUnit, const char* fontWeight, int32_t fontStyle, const char* fontFamily); 37 double fontSize, int32_t sizeUnit, const char* fontWeight, int32_t fontStyle, const char* fontFamily);
|
H A D | cj_datepicker_ffi.cpp | 162 textStyle.fontWeight = selectedStyle.GetFontWeight(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes() 168 textStyle.fontWeight = disappearStyle.GetFontWeight(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes() 174 textStyle.fontWeight = normalStyle.GetFontWeight(); in FfiOHOSAceFrameworkDatePickerSetDefaultAttributes() 195 textStyle.fontWeight = ConvertStrToFontWeight(weightVal); in FfiOHOSAceFrameworkDatePickerSetDisappearTextStyle() 216 textStyle.fontWeight = ConvertStrToFontWeight(weightVal); in FfiOHOSAceFrameworkDatePickerSetTextStyle() 237 textStyle.fontWeight = ConvertStrToFontWeight(weightVal); in FfiOHOSAceFrameworkDatePickerSetSelectedTextStyle()
|
H A D | cj_marquee_ffi.cpp | 56 void FfiOHOSAceFrameworkMarqueeSetFontWeight(const char* fontWeight) in FfiOHOSAceFrameworkMarqueeSetFontWeight() argument 58 MarqueeModel::GetInstance()->SetFontWeight(ConvertStrToFontWeight(fontWeight)); in FfiOHOSAceFrameworkMarqueeSetFontWeight()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | indexer_model_impl.cpp | 95 void IndexerModelImpl::SetSelectedFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, in SetSelectedFont() argument 102 SetTextStyle(textStyle, fontSize, fontWeight, fontFamily, fontStyle); in SetSelectedFont() 107 void IndexerModelImpl::SetPopupFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, in SetPopupFont() argument 114 SetTextStyle(textStyle, fontSize, fontWeight, fontFamily, fontStyle); in SetPopupFont() 119 void IndexerModelImpl::SetFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, in SetFont() argument 126 SetTextStyle(textStyle, fontSize, fontWeight, fontFamily, fontStyle); in SetFont() 203 std::optional<FontWeight>& fontWeight, std::optional<std::vector<std::string>>& fontFamily, in SetTextStyle() 209 if (fontWeight.has_value()) { in SetTextStyle() 210 textStyle.SetFontWeight(fontWeight.value()); in SetTextStyle() 202 SetTextStyle(TextStyle& textStyle, std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, std::optional<std::vector<std::string>>& fontFamily, std::optional<FontStyle>& fontStyle) SetTextStyle() argument
|
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,
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/ |
H A D | js_date_picker_theme.h | 40 textStyle.fontWeight = selectedStyle.GetFontWeight(); in ApplyTheme() 46 textStyle.fontWeight = disappearStyle.GetFontWeight(); in ApplyTheme() 52 textStyle.fontWeight = normalStyle.GetFontWeight(); in ApplyTheme()
|
H A D | js_text_picker_theme.h | 40 textStyle.fontWeight = selectedStyle.GetFontWeight(); in ApplyTheme() 46 textStyle.fontWeight = disappearStyle.GetFontWeight(); in ApplyTheme() 52 textStyle.fontWeight = normalStyle.GetFontWeight(); in ApplyTheme()
|
H A D | js_time_picker_theme.h | 40 textStyle.fontWeight = selectedStyle.GetFontWeight(); in ApplyTheme() 46 textStyle.fontWeight = disappearStyle.GetFontWeight(); in ApplyTheme() 52 textStyle.fontWeight = normalStyle.GetFontWeight(); in ApplyTheme()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/txt/ |
H A D | paragraph_style.cpp | 26 result.fontWeight = fontWeight; in ConvertToTextStyle()
|
H A D | text_style.cpp | 96 fontWeight == other.fontWeight && in operator ==()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/common/ |
H A D | typography_style.cpp | 23 .fontWeight = fontWeight, in GetTextStyle()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | selection_info.h | 78 int32_t fontWeight = 0; member 99 fontWeight = static_cast<int32_t>(style.GetFontWeight()); in SymbolSpanStyle() 113 && fontWeight == rhs.fontWeight in operator ==() 131 int32_t fontWeight = 0; member
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar_picker/ |
H A D | calendar_dialog_view_test_ng.cpp | 160 info1.fontWeight = FontWeight::W100; in HWTEST_F() 167 info2.fontWeight = FontWeight::W100; in HWTEST_F() 172 info3.fontWeight = FontWeight::W100; in HWTEST_F() 178 info4.fontWeight = FontWeight::W100; in HWTEST_F() 203 info1.fontWeight = FontWeight::W100; in HWTEST_F() 209 info2.fontWeight = FontWeight::W100; in HWTEST_F() 213 info3.fontWeight = FontWeight::W100; in HWTEST_F() 218 info4.fontWeight = FontWeight::W100; in HWTEST_F() 242 info1.fontWeight = FontWeight::W100; in HWTEST_F() 248 info2.fontWeight in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/texgine/export/texgine/ |
H A D | typography_style.h | 38 FontWeight fontWeight = FontWeight::W400; member 60 FontWeight fontWeight = FontWeight::W400; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/ |
H A D | indexer_model_ng.h | 32 void SetSelectedFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, 34 void SetPopupFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, 36 void SetFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, 71 std::optional<FontWeight>& fontWeight, std::optional<std::vector<std::string>>& fontFamily, 74 std::optional<FontWeight>& fontWeight, std::optional<std::vector<std::string>>& fontFamily, 76 static void SetFont(FrameNode* frameNode, std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight,
|
H A D | indexer_model.h | 44 virtual void SetSelectedFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, 46 virtual void SetPopupFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight, 48 virtual void SetFont(std::optional<Dimension>& fontSize, std::optional<FontWeight>& fontWeight,
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_badge_bridge.cpp | 58 param.fontWeight = static_cast<int32_t>(FontWeight::NORMAL); in InitBadgeParam() 134 Local<JSValueRef> fontWeight = runtimeCallInfo->GetCallArgRef(10); // 10: parameter index in ParseBadgeBaseParam() local 153 if (fontWeight->IsNumber()) { in ParseBadgeBaseParam() 154 fontWeightVal = std::to_string(fontWeight->Int32Value(vm)); in ParseBadgeBaseParam() 156 ArkTSUtils::ParseJsString(vm, fontWeight, fontWeightVal); in ParseBadgeBaseParam() 165 param.fontWeight = static_cast<ArkUI_Int32>(Framework::ConvertStrToFontWeight(fontWeightVal)); in ParseBadgeBaseParam()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | indexer_composed_element.cpp | 163 auto fontWeight = render ? render->GetActiveTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetSelectedFont() local 166 selectedFontJson->Put("weight", ConvertWrapFontWeightToStirng(fontWeight).c_str()); in GetSelectedFont() 182 auto fontWeight = render ? render->GetBubbleText()->GetTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetPopupFont() local 185 popupFontJson->Put("weight", ConvertWrapFontWeightToStirng(fontWeight).c_str()); in GetPopupFont() 201 auto fontWeight = render ? render->GetNormalTextStyle().GetFontWeight() : FontWeight::NORMAL; in GetFont() local 204 fontJson->Put("weight", ConvertWrapFontWeightToStirng(fontWeight).c_str()); in GetFont()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | alphabet_indexer_modifier.cpp | 58 auto fontWeight = indexerTheme->GetPopupTextStyle().GetFontWeight(); in ResetPopupItemFont() local 59 IndexerModelNG::SetFontWeight(frameNode, fontWeight); in ResetPopupItemFont() 71 std::optional<FontWeight> fontWeight = StringUtils::StringToFontWeight(res[FONT_WEIGHT_INDEX]); in SetSelectedFont() local 77 IndexerModelNG::SetSelectedFont(frameNode, fontSize, fontWeight, fontFamily, fontStyle); in SetSelectedFont() 90 std::optional<FontWeight> fontWeight = selectTextStyle.GetFontWeight(); in ResetSelectedFont() local 93 IndexerModelNG::SetSelectedFont(frameNode, fontSize, fontWeight, fontFamily, fontStyle); in ResetSelectedFont() 105 std::optional<FontWeight> fontWeight = StringUtils::StringToFontWeight(res[FONT_WEIGHT_INDEX]); in SetPopupFont() local 111 IndexerModelNG::SetPopupFont(frameNode, fontSize, fontWeight, fontFamily, fontStyle); in SetPopupFont() 124 std::optional<FontWeight> fontWeight = popupTextStyle.GetFontWeight(); in ResetPopupFont() local 127 IndexerModelNG::SetPopupFont(frameNode, fontSize, fontWeight, fontFamil in ResetPopupFont() 139 std::optional<FontWeight> fontWeight = StringUtils::StringToFontWeight(res[FONT_WEIGHT_INDEX]); SetAlphabetIndexerFont() local 158 std::optional<FontWeight> fontWeight = defaultTextStyle.GetFontWeight(); ResetAlphabetIndexerFont() local [all...] |
H A D | calendar_picker_modifier.cpp | 71 ArkUINodeHandle node, uint32_t color, float fontSize, int32_t fontSizeUnit, int32_t fontWeight) in SetTextStyleWithWeightEnum() 79 textStyle.fontWeight = static_cast<Ace::FontWeight>(fontWeight); in SetTextStyleWithWeightEnum() 96 textStyle.fontWeight = StringUtils::StringToFontWeight(fontweight, FontWeight::NORMAL); in SetTextStyle() 109 textStyle.fontWeight = currentTextStyle.fontWeight.has_value() in GetTextStyle() 110 ? static_cast<int32_t>(currentTextStyle.fontWeight.value()) in GetTextStyle() 126 textStyle.fontWeight = FontWeight::NORMAL; in ResetTextStyle() 70 SetTextStyleWithWeightEnum( ArkUINodeHandle node, uint32_t color, float fontSize, int32_t fontSizeUnit, int32_t fontWeight) SetTextStyleWithWeightEnum() argument
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_badge.cpp | 111 JSRef<JSVal> fontWeightValue = value->GetProperty("fontWeight"); in CreateBadgeParameters() 179 std::string fontWeight; in CreateBadgeParameters() local 181 fontWeight = std::to_string(fontWeightValue->ToNumber<int32_t>()); in CreateBadgeParameters() 183 if (!ParseJsString(fontWeightValue, fontWeight)) { in CreateBadgeParameters() 187 badgeParameters.badgeFontWeight = ConvertStrToFontWeight(fontWeight); in CreateBadgeParameters()
|
/foundation/arkui/ui_lite/test/unittest/font/ |
H A D | ui_font_unit_test.cpp | 202 uint8_t fontWeight = UIFont::GetInstance()->GetFontWeight(FONT_ID); in HWTEST_F() local 204 EXPECT_EQ(fontWeight, FONT_BPP); in HWTEST_F() 206 EXPECT_EQ(fontWeight, 0); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/export/rosen_text/ |
H A D | typography_style.h | 45 FontWeight fontWeight = FontWeight::W400; member 81 this->fontWeight == rhs.fontWeight && in operator ==()
|