I wrote yesterday and received a response from Richard Gaskin, which is below. I was getting weird font behavior in a field and finally checked my script only to find that the script had someone changed, so that the font size was now "3," instead of whatever I had originally set it at. I can't imagine why this would happen, as the font was rendering at a larger size (which had been set by the script). I have no idea why this would happen.
Rand Randolph Valentine wrote: > Hi, all. I have a weird development in a stack with formatted HTML text in > it. For some reason, some of the text shows at 3 point size, and in other > cases seems to be appropriate size. When I copy and paste the text into > Word, it is the appropriate size. What could be causing this weird display > issue in my stack? This seems to be case with all versions of Livecode I try > (5 and 6), and it shows up in both Macintosh and Windows Livecode apps. Any > ideas of what's wrong? The font is nothing exotic. html <> htmlText If you're setting the htmlText from html, you'll discover that <font size=3> means something different in browsers than it does in LC. In a browser font sizes 1 through 8 are shorthand for larger sizes, used in the pre-CSS days for things like section headers, while in LC all font sizes are interpreted as literal point values. You may want to check the htmlText of the field and determine if that's the case, perhaps doing a replace on those to a size specifier better suited for LC. Another possibility may be that the font size isn't specified in the styled text run at all, but is set too small in the field's textSize property. Let us know what you find.... -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com <http://www.fourthworld.com/> Webzine for LiveCode developers: http://www.LiveCodeJournal.com <http://www.LiveCodeJournal.com/> Follow me on Twitter: http://twitter.com/FourthWorldSys _______________________________________________ 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
