ursus
11/17/2025, 2:40 PMAnnotationString span on a angle? Rotation doesn't seem to be available on SpanStyle .. can I have custom rendering for a given span? (Or maybe some other technique?)Aditya Bhaskar
11/17/2025, 8:37 PMdrawBehind to draw the tilted box. Though this will introduce a one frame delay to the highlight drawing.Zach Klippenstein (he/him) [MOD]
11/17/2025, 8:45 PMursus
11/17/2025, 9:16 PMonTextLayout that is the Text parameter, right? i.e. I should not go the `AnnotatedString`/span route?
Or should I use Spans as indices markers and pick them up somehow in onTextLAyout?Jonathan
11/18/2025, 2:42 PMonTextLayout {} should give you a TextLayoutResult that contains queryable information about the rendered text. Look into TextLayoutResult.getBoundingBox(…) to find the bounding box for your desired text run. Not sure if you will need AnnotatedString anymore if you are going to manually draw your angled highlight… depends if you have a need for additional “annotation” that you don’t want to manually draw on the canvas.