Skip to main content
Known Participant
May 4, 2010
Question

Cursor Height with inline graphics

  • May 4, 2010
  • 1 reply
  • 745 views

Hello

Is there any way to limit the height of cursor to the height of the text  in a text line having graphics? The height of the cursor remain equal to the line  height having graphics in the whole line which is not required in my current application.

This topic has been closed for replies.

1 reply

Adobe Employee
May 5, 2010

I'm not sure there's an easy way to do this, sorry. At least I can't think of one. You could go into our selection highlighting code and alter it for this case, though. If you are interested in that, let me know and I will furnish you with further directions.

- robin

Known Participant
May 6, 2010

Hello

yes robin I need further guidance from your end.

Thanks

Adobe Employee
May 7, 2010

I think the function you would need to change is TextFlowLine.getRomanSelectionHeightAndVerticalAdjustment(). It returns the height of a block that is used for both highlighting and the caret.

If you want a different height to be used for the caret than for block highlighting, I'm afraid you'll have to trace farther into the selection redraw code, probably in TextFlowLine.makeSelectionBlocks. This code is handling a lot of different combinations of tcy, bidi levels, rotation, etc.; it's not simple. But the cases you want to change might be limited, which would help.

- robin