You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately the CharacterSpacing property for Forms9Patch.Label has no effect in Xamarin for iOS and Android. Tested on Samsung Galaxy (OS 10) and iPhone 11 Max PRO (iOS 14.2).
I checked it on the demo "LabelGetSize.cs":
`
namespace Forms9PatchDemo
{
[Xamarin.Forms.Internals.Preserve(AllMembers = true)]
public class LabelGetSize : ContentPage
{
Forms9Patch.Label _label = new Forms9Patch.Label
{
Text = "This is some text. It's about pizza and cheese. And pepperoni.",
TextColor = Color.Black,
CharacterSpacing = 3
};
public LabelGetSize()
{
Content = new StackLayout
{
Children = {
_label
}
};
SizeChanged += (object sender, EventArgs e) =>
{
var size1 = _label.SizeForWidthAndFontSize(50, 12);
var size2 = _label.SizeForWidthAndFontSize(100, 24);
System.Diagnostics.Debug.WriteLine("size1=[" + size1 + "] size2=[" + size2 + "]");
};
}
}
}
`
But without effect.
What can I do to set the spacing of the text?
Best regards,
Jasmin
The text was updated successfully, but these errors were encountered:
Hallo,
Unfortunately the CharacterSpacing property for Forms9Patch.Label has no effect in Xamarin for iOS and Android. Tested on Samsung Galaxy (OS 10) and iPhone 11 Max PRO (iOS 14.2).
I checked it on the demo "LabelGetSize.cs":
`
namespace Forms9PatchDemo
{
[Xamarin.Forms.Internals.Preserve(AllMembers = true)]
public class LabelGetSize : ContentPage
{
Forms9Patch.Label _label = new Forms9Patch.Label
{
Text = "This is some text. It's about pizza and cheese. And pepperoni.",
TextColor = Color.Black,
CharacterSpacing = 3
};
}
`
But without effect.
What can I do to set the spacing of the text?
Best regards,
Jasmin
The text was updated successfully, but these errors were encountered: