mosaic icon indicating copy to clipboard operation
mosaic copied to clipboard

`SpanStyle` properties do not merge when appropriate

Open JakeWharton opened this issue 10 months ago • 2 comments

buildAnnotatedString {
	append("one")
	withStyle(SpanStyle(textStyle = Underline)) {
		append("two")
		append(buildAnnotatedString {
			withStyle(SpanStyle(textStyle = Italic)) {
				append("three")
			}
		})
	}
	append("four")
}

This is also a problem in Compose UI with its TextDecoration (e.g., underline + strikethrough).

JakeWharton avatar Feb 18 '25 20:02 JakeWharton

With more advanced underlines coming in #628, we probably need to change this design anyway.

JakeWharton avatar Feb 18 '25 21:02 JakeWharton

Upstream bug: https://issuetracker.google.com/issues/397701274, not that we're blocked by it

JakeWharton avatar Feb 19 '25 21:02 JakeWharton