Has anyone faced an issue with a Font like this
so picture 1 represents a text with a font, for some reason, some characters go back to the line even though the text is set on (no idea why it overFlows.
softWrap = false,
overflow = TextOverflow.Visible,
since it was someHow an overFlow I even tried this:
onTextLayout = { textLayoutResult ->
while (textLayoutResult.hasVisualOverflow) {
println("has overFlow")
annotatedStringDFontSize -= 1f
}
}
but nothing it just keeps on printing overFlow, I even tried to only set the first word but somehow its still got an overFlow.
If I apply maxLines = 1, then the characters will be invisible as shown in picture 2.
if I use another font the default font for example it works fine without even including maxLines = 1
as shown in picture 3. Has anyone faced an issue like this?
Youssef Hachicha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.