I have the following Android TextView:
<TextView
fontPath="fonts/Ubuntu-Light.ttf"
android:layout_width="50sp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Moyennement"
android:id="@+id/txt_score2"
android:gravity="center"
android:textSize="8sp"
android:textColor="@color/indicator_score_text" />
And a corresponding iOS UITextView (code):
var smiley = new UITextView { Text = name, ScrollEnabled = false, Font = FontHelpers.GenerateUIFont("Ubuntu-Light", 8), };
smiley.TextContainer.MaximumNumberOfLines = 2;
smiley.TextContainer.LineBreakMode = UILineBreakMode.CharacterWrap;
smiley.SizeToFit();
On iOS, it gives me the following result:
But on Android, the text "Moyennement" that does not fit is correctly truncated:
What Am I missing here? Thanks in advance.