https://kotlinlang.org logo
#korge
Title
# korge
r

Rishav Sharan

06/03/2020, 8:55 PM
does the Text type have a textSize member? I can see that in the view/text.kt file. But when I try to use it in my code, I am getting an error;
d

Deactivated User

06/03/2020, 8:58 PM
let me check
It seems that it is just available at construction time. You can use
text("0", textSize = 24.0) {
After that it seems that you have to set the whole format. Which maybe is not too convenient.
Copy code
format = format.copy(textSize = 24.0)
So maybe we can provide a property that does just that
r

Rishav Sharan

06/03/2020, 9:02 PM
I'll add a GH issue on it for easy tracking
👍 1
d

Deactivated User

06/03/2020, 9:06 PM
Yes, thanks!
4 Views