Dov Feldstern wrote:

We would also have to decide where the correct place for this cache is
(TextMetrics?);

Cursor seems like the ideal place for that.

should caching occur for the entire paragraph (or even
document), or just for the line which the cursor is in?

I don't follow you... there is a single cursor position.

But basically, I think this would solve the repeated code, as well as
provide an efficiency boost.

Any cleanup is welcome of course but I am not sure the efficiency boost would be sensible. CursorX seems like a pretty cheap operation.

Abdel.

Reply via email to