/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_adapt_font_sizer.cpp | 30 double maxFontSize = 0.0; in AdaptMaxFontSize() local 33 if (LessNotEqual(maxFontSize, minFontSize) || LessOrEqual(minFontSize, 0.0)) { in AdaptMaxFontSize() 48 auto tag = static_cast<int32_t>((maxFontSize - minFontSize) / stepSize); in AdaptMaxFontSize() 68 fontSize = GreatNotEqual(fontSize, maxFontSize) ? maxFontSize : fontSize; in AdaptMaxFontSize() 76 double maxFontSize = 0.0; in AdaptMinFontSize() local 86 while (GreatOrEqual(maxFontSize, minFontSize)) { in AdaptMinFontSize() 87 textStyle.SetFontSize(Dimension(maxFontSize)); in AdaptMinFontSize() 94 maxFontSize -= stepSize; in AdaptMinFontSize() 102 maxFontSize = textStyle.GetAdaptMaxFontSize().ConvertToPxDistribute( in GetAdaptMaxMinFontSize() 154 double maxFontSize = 0.0; in IsNeedAdaptFontSize() local [all …]
|
H A D | text_adapt_font_sizer.h | 48 static bool IsNeedAdaptFontSize(const double& maxFontSize, const double& minFontSize); 50 …static void GetAdaptMaxMinFontSize(const TextStyle& textStyle, double& maxFontSize, double& minFon…
|
H A D | text_layout_algorithm.cpp | 404 double maxFontSize = 0.0; in AdaptMinTextSize() local 409 maxFontSize = maxFontSizeDimension.ConvertToPxDistribute( in AdaptMinTextSize() 413 if (LessNotEqual(maxFontSize, minFontSize) || LessOrEqual(minFontSize, 0.0)) { in AdaptMinTextSize() 428 while (GreatOrEqual(maxFontSize, minFontSize)) { in AdaptMinTextSize() 429 textStyle.SetFontSize(Dimension(maxFontSize)); in AdaptMinTextSize() 437 bool isEqual = maxFontSize == minFontSize; in AdaptMinTextSize() 438 maxFontSize -= stepSize; in AdaptMinTextSize() 439 if (LessNotEqual(maxFontSize, minFontSize) && !isEqual) { in AdaptMinTextSize() 440 maxFontSize = minFontSize; in AdaptMinTextSize()
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/swiperefresher/interfaces/ |
H A D | swiperefresher.js | 41 this.maxFontSize = 2; 61 if (t11.maxFontSize !== undefined) { 62 this.maxFontSize = t11.maxFontSize; 129 …ngProgress.height(Math.min(this.updateFontScale(), MAX_FONT_SIZE) === this.maxFontSize ? MAX_SIZE : 131 …ingProgress.width(Math.min(this.updateFontScale(), MAX_FONT_SIZE) === this.maxFontSize ? MAX_SIZE :
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-gauge.md | 272 .maxFontSize('30sp') 289 .maxFontSize("60.0vp") 296 .maxFontSize("16.0fp") 351 .maxFontSize("60.0vp") 384 .maxFontSize('30sp') 447 .maxFontSize("72.0vp") 456 .maxFontSize("30.0vp") 501 .maxFontSize("80sp") 542 .maxFontSize('60sp') 552 .maxFontSize('16sp') [all …]
|
H A D | ts-basic-components-textarea.md | 636 需配合[maxFontSize](#maxfontsize12)以及[maxLines](#maxlines10)或布局大小限制使用,单独设置不生效。 650 ### maxFontSize<sup>12+</sup> 652 maxFontSize(value: number | string | Resource) 676 …性来调整文本高度。如果使用maxLines属性的布局大小超过了布局约束,则尝试在[minFontSize](#minfontsize12)和[maxFontSize](#maxfontsize12… 679 …,优先使用minFontSize属性来调整文本高度。如果使用minFontSize属性可以将文本布局在一行中,则尝试在minFontSize和maxFontSize的范围内增大字体并使用最大可能的… 681 …y.LAYOUT_CONSTRAINT_FIRST时,优先使用布局约束来调整文本高度。如果布局大小超过布局约束,则尝试在minFontSize和maxFontSize的范围内缩小字体以满足布局约束。 1525 该示例通过minFontSize、maxFontSize、heightAdaptivePolicy属性展示了文本自适应字号的效果。 1539 .maxFontSize(40) 1545 .maxFontSize(40) 1551 .maxFontSize(40)
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/swiperefresher/source/ |
H A D | swiperefresher.ets | 37 maxFontSize: number = 2; 64 .height(Math.min(this.updateFontScale(), MAX_FONT_SIZE) === this.maxFontSize ? MAX_SIZE : 66 .width(Math.min(this.updateFontScale(), MAX_FONT_SIZE) === this.maxFontSize ? MAX_SIZE :
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/editabletitlebar/interfaces/ |
H A D | editabletitlebar.js | 423 Text.maxFontSize(TITLE_F_VP); 451 Text.maxFontSize(SUBTITLE_F_VP); 700 this.maxFontSize = 3.2; 758 if (c4.maxFontSize !== undefined) { 759 this.maxFontSize = c4.maxFontSize; 1142 this.maxFontSize = 3.2; 1177 if (n1.maxFontSize !== undefined) { 1178 this.maxFontSize = n1.maxFontSize; 1256 Column.width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG); 1257 …Column.constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG }); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-common-components-text-display.md | 255 …eference/apis-arkui/arkui-ts/ts-basic-components-text.md#minfontsize)与[maxFontSize](../reference/a… 257 …minFontSize用于设置文本的最小显示字号,maxFontSize用于设置文本的最大显示字号。这两个属性必须同时设置才能生效,并且需要与[maxLines](../reference/api… 263 .maxFontSize(30) 271 .maxFontSize(30) 279 .maxFontSize(30) 287 .maxFontSize(30)
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_layout_algorithm.cpp | 1052 double maxFontSize = 0.0; in AdaptInlineFocusFontSize() local 1054 GetAdaptMaxMinFontSize(textStyle, maxFontSize, minFontSize, contentConstraint); in AdaptInlineFocusFontSize() 1055 if (LessNotEqual(maxFontSize, minFontSize) || LessOrEqual(minFontSize, 0.0)) { in AdaptInlineFocusFontSize() 1060 auto tag = static_cast<int32_t>((maxFontSize - minFontSize) / stepSize); in AdaptInlineFocusFontSize() 1083 fontSize = GreatNotEqual(fontSize, maxFontSize) ? maxFontSize : fontSize; in AdaptInlineFocusFontSize() 1117 double maxFontSize = 0.0; in AdaptInlineFocusMinFontSize() local 1119 GetAdaptMaxMinFontSize(textStyle, maxFontSize, minFontSize, contentConstraint); in AdaptInlineFocusMinFontSize() 1120 if (LessNotEqual(maxFontSize, minFontSize) || LessOrEqual(minFontSize, 0.0)) { in AdaptInlineFocusMinFontSize() 1131 while (GreatOrEqual(maxFontSize, minFontSize)) { in AdaptInlineFocusMinFontSize() 1132 textStyle.SetFontSize(Dimension(maxFontSize)); in AdaptInlineFocusMinFontSize() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/ |
H A D | tabs_sub_tab_bar_style_test_ng.cpp | 645 EXPECT_EQ(tabContentPattern->GetLabelStyle().maxFontSize, std::nullopt); 687 EXPECT_EQ(tabContentPattern->GetLabelStyle().maxFontSize, std::nullopt); 738 labelStyle.maxFontSize = 0.0_vp; 751 …EXPECT_EQ(tabContentPattern->GetLabelStyle().maxFontSize->ToString(), labelStyle.maxFontSize->ToSt… 792 labelStyle.maxFontSize = 0.0_vp; 805 …EXPECT_EQ(tabContentPattern->GetLabelStyle().maxFontSize->ToString(), labelStyle.maxFontSize->ToSt… 1002 labelStyle.maxFontSize = 0.0_vp; 1024 EXPECT_EQ(layoutProperty->GetAdaptMaxFontSize(), labelStyle.maxFontSize); 1057 labelStyle.maxFontSize = 0.0_vp; 1077 EXPECT_EQ(layoutProperty->GetAdaptMaxFontSize(), labelStyle.maxFontSize); [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-gauge.md | 272 .maxFontSize('30sp') 289 .maxFontSize("60.0vp") 296 .maxFontSize("16.0fp") 351 .maxFontSize("60.0vp") 384 .maxFontSize('30sp') 447 .maxFontSize("72.0vp") 456 .maxFontSize("30.0vp") 501 .maxFontSize("80sp") 542 .maxFontSize('60sp') 552 .maxFontSize('16sp') [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_tab_content.cpp | 306 CalcDimension maxFontSize; in SetLabelStyle() local 307 if (ParseJsDimensionFp(maxFontSizeValue, maxFontSize) && NonNegative(maxFontSize.Value()) && in SetLabelStyle() 308 maxFontSize.Unit() != DimensionUnit::PERCENT) { in SetLabelStyle() 309 labelStyle.maxFontSize = maxFontSize; in SetLabelStyle() 500 if (!labelStyle.maxFontSize.has_value()) { in CompleteParameters() 501 labelStyle.maxFontSize = 0.0_vp; in CompleteParameters()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/ |
H A D | rosen_render_text.cpp | 302 double maxFontSize = NormalizeToPx(textStyle_.GetAdaptMaxFontSize()); in AdaptMinTextSize() local 304 …if (LessNotEqual(maxFontSize, minFontSize) || LessOrEqual(textStyle_.GetAdaptMinFontSize().Value()… in AdaptMinTextSize() 317 while (GreatOrEqual(maxFontSize, minFontSize)) { in AdaptMinTextSize() 318 textStyle_.SetFontSize(Dimension(maxFontSize)); in AdaptMinTextSize() 325 maxFontSize -= stepSize; in AdaptMinTextSize()
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/editabletitlebar/source/ |
H A D | editabletitlebar.ets | 278 .maxFontSize(TITLE_F_VP) 296 .maxFontSize(SUBTITLE_F_VP) 400 maxFontSize: number = 3.2; 662 maxFontSize: number = 3.2; 715 .width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG) 716 .constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG }) 735 .width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG) 736 .constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG })
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkButton.ts | 228 let maxFontSize = this.value.maxFontSize; // number | string | Resource -> Dimension 240 … getUINativeModule().button.setLabelStyle(node, textOverflow, maxLines, minFontSize, maxFontSize, 251 this.value.maxFontSize === this.stageValue.maxFontSize &&
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/selecttitlebar/interfaces/ |
H A D | selecttitlebar.js | 1116 this.maxFontSize = 3.2; 1151 if (h1.maxFontSize !== undefined) { 1152 this.maxFontSize = h1.maxFontSize; 1240 Column.width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG); 1241 …Column.constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG }); 1291 Column.width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG); 1292 …Column.constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG });
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/ |
H A D | gauge_layout_algorithm.cpp | 327 Dimension maxFontSize; in MeasureFontSize() local 328 auto hasMaxFontSize = GetLimitFontSize(layoutWrapper, false, maxFontSize); in MeasureFontSize() 331 auto fontSize = minFontSize < maxFontSize ? minFontSize : maxFontSize; in MeasureFontSize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | text_style.cpp | 53 const Dimension& maxFontSize, const Dimension& minFontSize, const Dimension& fontSizeStep) in SetAdaptTextSize() argument 55 adaptMaxFontSize_ = maxFontSize; in SetAdaptTextSize()
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/composetitlebar/interfaces/ |
H A D | composetitlebar.js | 1161 this.maxFontSize = 3.2; 1195 if (h1.maxFontSize !== undefined) { 1196 this.maxFontSize = h1.maxFontSize; 1273 Column.width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG); 1274 …Column.constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG }); 1336 Column.width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG); 1337 …Column.constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG });
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-common-components-text-display.md | 256 …ence/apis-arkui/arkui-ts/ts-basic-components-text.md#minfontsize) and [maxFontSize](../reference/a… 264 .maxFontSize(30) 272 .maxFontSize(30) 280 .maxFontSize(30) 288 .maxFontSize(30)
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | button_request_data.h | 41 std::optional<Dimension> maxFontSize; member
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/composetitlebar/source/ |
H A D | composetitlebar.ets | 557 maxFontSize: number = 3.2; 597 .width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG) 598 .constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG }) 609 .width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG) 610 .constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG })
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/tabtitlebar/interfaces/ |
H A D | tabtitlebar.js | 1351 this.maxFontSize = 3.2; 1385 if (h1.maxFontSize !== undefined) { 1386 this.maxFontSize = h1.maxFontSize; 1461 Column.width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG); 1462 …Column.constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG }); 1512 Column.width(this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG); 1513 …Column.constraintSize({ minHeight: this.fontSize === this.maxFontSize ? MAX_DIALOG : MIN_DIALOG });
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_font_vector.cpp | 962 uint8_t maxFontSize = fontSize; in GetOffsetPosY() local 984 isEmojiLarge = emojiMaxNode.rows > maxFontSize; in GetOffsetPosY() 988 if (emojiMaxNode.top >= maxFontSize) { in GetOffsetPosY() 989 offset = emojiMaxNode.top - maxFontSize; in GetOffsetPosY() 993 if (maxFontSize >= emojiMaxNode.rows) { in GetOffsetPosY() 994 offset = maxFontSize - emojiMaxNode.rows; in GetOffsetPosY()
|