Hi Alan,

Alan Macleod wrote:
> Henrik,
> 
> I was going to map the start and endpoints using caret_to_offset on find
> text and find/tail text. And knowing the text field width paint multiple
> boxes to fit the shape. Not pretty but I think good enough for what I want.
> 
> Or is the function that highlight_start and highlight-end uses available or
> is it hidden too deep (not mezzazine)

Hidden too deep I think. But can be worked around, I think.

> Anton, or Henrik,
> 
> Is it possible to use the draw dialect to "paint" these highlights? The way
> a simple paint program pains into an area?

Yes, it is.

 > How do you use size-text to find the size for a row or highlighted 
section?
 > I can only find the size of the entire text face.

You can't do it in place. I've obtained this by use of workarounds
which you can see working pretty well in
demo-caret-to-offset-patch.r and
test-caret-to-offset-patch.r

See my lengthy investigations in these files.

http://anton.wildit.net.au/rebol/doc/field-text-draw.r
http://anton.wildit.net.au/rebol/view/draw/smooth-font-scaling.r
http://anton.wildit.net.au/rebol/patch/demo-caret-to-offset-patch.r
http://anton.wildit.net.au/rebol/patch/test-caret-to-offset-patch.r

Especially those last two files.

Regards,

Anton.
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to