1 person found this helpful
How about something like this?
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"> <s:TextArea id="txtArea" horizontalCenter="0" verticalCenter="0"> <s:content> <s:p>The quick brown fox jumps <s:span backgroundColor="0xFF0000" backgroundAlpha="0.8">over</s:span> the lazy dog.</s:p> </s:content> </s:TextArea> </s:Application>
Its an interesting idea, but I would really like to be able to overlay complex graphics over the text.
Would I be able to get the position of a <span id... tag within any of the text components in Gumbo.
Such as in?
In this way, I could put a span around the text then get the X,Y cordinate of it, or the bounding box.
Another *hack* way I could do it is to color the text in the span a particular color, then convert this editor to a bitmap image and search the image for that color. Then I could find the X,Y location of the text.
I’m not sure, but the best place to ask would probably be on the Text Layout Format (TLF) forums at http://forums.adobe.com/community/opensource/tlf
I *think* they have some examples of adding custom shapes around text (similar to the underlines on a spell checker).