On 5/25/22 6:36 AM, Paul Dupuis via use-livecode wrote:
Anyway, here is the routine, While it works, if I was rewriting it, I would probably just do a loop with a match to the html font size attribute. This code does ensure that the size can't go below a minimum where LC's legacy font size values actually make the text bigger.
Thanks so much, very helpful. It's close to what I was thinking of doing. The other alternative is looping through style runs in the styledText property. The text I'm dealing with is pretty long, so I'll do some tests to see which method is faster.
Thanks again, Jacque -- Jacqueline Landman Gay | [email protected] HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
