https://kotlinlang.org logo
s

Slackbot

09/01/2020, 4:45 PM
This message was deleted.
s

Siyamed

09/01/2020, 4:46 PM
can you elaborate on changing the line height of the rest of the text?
visual transformation initially was to change the text, i didnt think of it for changing the visuals
y

Yashovardhan

09/01/2020, 4:51 PM
So I'm basically applying 2 styles. 1 is for the first line (just till the first \n) which increases the font size and the line height. The other is for the rest of the text just increasing the line height slightly
s

Siyamed

09/01/2020, 4:53 PM
oh I see. (I just saw tht TransformedText accepts AnnotatedString)
can you please create a ticket about this?
y

Yashovardhan

09/01/2020, 4:53 PM
Sure thing
Also would appreciate some documentation on this (if there isn't any already). Im having a hard time understanding how to use offset maps with transformed text
👍 1
Filed a bug at https://issuetracker.google.com/167352823 with more details
I am really sorry, this was a mistake on my end. I had set the line heights too small (really stupid mistake). This is working fine now. You can even close the issue. Again, really sorry for this
s

Siyamed

09/01/2020, 6:22 PM
👍 happy that it works
👍 1
2 Views