Skip to content

Commit caad7aa

Browse files
NanthiniMahalingamrmarinho
authored andcommitted
Fixed the label span issue. (#28851)
1 parent a4e632a commit caad7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controls/src/Core/Platform/Android/Extensions/FormattedStringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ internal static SpannableString ToSpannableStringNewWay(
116116
if (font.IsDefault && defaultFont.HasValue)
117117
font = defaultFont.Value;
118118
if (!font.IsDefault)
119-
spannable.SetSpan(new PlatformFontSpan(context ?? AAplication.Context, font.ToTypeface(fontManager), font.AutoScalingEnabled, (float)font.Size), start, end, SpanTypes.InclusiveInclusive);
119+
spannable.SetSpan(new PlatformFontSpan(context ?? AAplication.Context, font.ToTypeface(fontManager), font.AutoScalingEnabled, (float)fontManager.GetFontSize(font).Value), start, end, SpanTypes.InclusiveInclusive);
120120

121121
// TextDecorations
122122
var textDecorations = span.IsSet(Span.TextDecorationsProperty)

0 commit comments

Comments
 (0)