Home
last modified time | relevance | path

Searched refs:IsNeedAdaptFontSize (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_adapt_font_sizer.h48 static bool IsNeedAdaptFontSize(const double& maxFontSize, const double& minFontSize);
49 …static bool IsNeedAdaptFontSize(const TextStyle& textStyle, const LayoutConstraintF& contentConstr…
H A Dtext_adapt_font_sizer.cpp144 bool TextAdaptFontSizer::IsNeedAdaptFontSize(const double& maxFontSize, const double& minFontSize) in IsNeedAdaptFontSize() function in OHOS::Ace::NG::TextAdaptFontSizer
152 bool TextAdaptFontSizer::IsNeedAdaptFontSize(const TextStyle& textStyle, const LayoutConstraintF& c… in IsNeedAdaptFontSize() function in OHOS::Ace::NG::TextAdaptFontSizer
157 return IsNeedAdaptFontSize(maxFontSize, minFontSize); in IsNeedAdaptFontSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_layout_algorithm.h135 …bool IsNeedAdaptFontSize(const TextStyle& textStyle, const RefPtr<TextFieldLayoutProperty>& layout…
H A Dtext_field_layout_algorithm.cpp1034 bool TextFieldLayoutAlgorithm::IsNeedAdaptFontSize(const TextStyle& textStyle, in IsNeedAdaptFontSize() function in OHOS::Ace::NG::TextFieldLayoutAlgorithm
1046 return TextAdaptFontSizer::IsNeedAdaptFontSize(textStyle, contentConstraint); in IsNeedAdaptFontSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_area/
H A Dtext_area_layout_algorithm.cpp62 if (IsNeedAdaptFontSize(textStyle, textFieldLayoutProperty, textFieldContentConstraint)) { in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_testfive_ng.cpp820 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(maxFontSize, minFontSize), false);
824 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(maxFontSize, minFontSize), true);
828 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(maxFontSize, minFontSize), false);
832 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(maxFontSize, minFontSize), false);
837 textAdaptFontSizer->IsNeedAdaptFontSize(textStyle, contentConstraint);
843 EXPECT_EQ(textAdaptFontSizer->IsNeedAdaptFontSize(textStyle, contentConstraint), false);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_input/
H A Dtext_input_layout_algorithm.cpp51 if (IsNeedAdaptFontSize(textStyle, textFieldLayoutProperty, textFieldContentConstraint_)) { in MeasureContent()