Mark (Smith):

You didn't solve my problem, but you gave me the inspiration to solve it!
Roughly, what I did was to copy the selected (rich) text to a new "temp" field using HTMLtext, and then I examined "temp" char by char to see what the textFont was. If each char reported the same font name, then the whole selection was declared to be of the same font name (in spite of differing sizes).

Thanks again!

By the way, does anyone know whether this has been fixed in Rev 2.7?
Or is it supposedly a "feature" and not a "bug"?
A reminder of the original problem is below.

Regards,
Bob

---------------------------------------------------------------------------------------------------------

I have a single word (e.g. robert) in a field "test".
The whole word is in the Courier font, but the middle 2 letters are of a size different to the others.

I am doing something like this in the field's coding:

on mouseMove
if the selectedText is not empty then
  put the textFont of the selectedText into field "result"
end if
end mouseMove


If I select the whole word in field "test", instead of "courier" in the field "result" I get "mixed". But it is the SIZE that is mixed, NOT the font name!

I am using Rev 2.6.1.
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to