baskren/Forms9Patch

CharacterSpacing for Label not work

Opened this issue · 0 comments

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
};

	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