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
 Webzine for LiveCode developers: 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

Reply via email to