diff --git a/Source/Alcinoe.FMX.BreakText.pas b/Source/Alcinoe.FMX.BreakText.pas index c2da70395..f25cdd7c1 100644 --- a/Source/Alcinoe.FMX.BreakText.pas +++ b/Source/Alcinoe.FMX.BreakText.pas @@ -53,7 +53,7 @@ TALMultiLineTextOptions = class(Tobject) DecorationThicknessMultiplier: Single; // default = 1 DecorationColor: TAlphaColor; // default = TAlphaColors.Null //-- - EllipsisText: String; // default = '…'; + EllipsisText: String; // default = TALBaseTextSettings.HorizontalEllipsis ('…'); EllipsisInheritSettings: Boolean; // default = True; //-- EllipsisFontFamily: String; // default = '' @@ -346,7 +346,7 @@ constructor TALMultiLineTextOptions.Create; DecorationThicknessMultiplier := 1; DecorationColor := TAlphaColors.Null; //-- - EllipsisText := '…'; + EllipsisText := TALBaseTextSettings.HorizontalEllipsis; EllipsisInheritSettings := True; //-- EllipsisFontFamily := ''; diff --git a/Source/Alcinoe.FMX.Common.pas b/Source/Alcinoe.FMX.Common.pas index 4d8c358a4..5f1f3ee56 100644 --- a/Source/Alcinoe.FMX.Common.pas +++ b/Source/Alcinoe.FMX.Common.pas @@ -404,6 +404,8 @@ TALEllipsisSettings = class(TALPersistentObserver) {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} TALBaseTextSettings = class(TALPersistentObserver) + public + class var HorizontalEllipsis: String; private FFont: TALFont; FDecoration: TALTextDecoration; @@ -2300,7 +2302,7 @@ constructor TALBaseTextSettings.Create; FEllipsisSettings := TALEllipsisSettings.create; FEllipsisSettings.OnChanged := EllipsisSettingsChanged; //-- - FDefaultEllipsis := '…'; + FDefaultEllipsis := HorizontalEllipsis; FDefaultTrimming := TALTextTrimming.Word; FDefaultMaxLines := 65535; FDefaultHorzAlign := TALTextHorzAlign.Leading; @@ -5908,6 +5910,7 @@ initialization {$IF (not defined(ALSkiaEngine)) and (defined(Android))} TALFontManager.FCustomTypeFaces := TDictionary.Create; {$ENDIF} + TALBaseTextSettings.HorizontalEllipsis := '…'; finalization AlFreeAndNil(ALFontMetricsCache);