HTML font size in percentages

J. Landman Gay jacque at
Wed May 25 14:32:04 EDT 2022

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,


Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the use-livecode mailing list