Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CharacterSpacing for Label not work #88

Open
jasmin713 opened this issue Jan 15, 2021 · 0 comments
Open

CharacterSpacing for Label not work #88

jasmin713 opened this issue Jan 15, 2021 · 0 comments

Comments

@jasmin713
Copy link

jasmin713 commented Jan 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant