problems displaying descenders

Ken Ray kray at sonsothunder.com
Thu Sep 21 11:56:26 CDT 2006


On 9/21/06 8:20 AM, "rand valentine" <jrvalent at wisc.edu> wrote:

>  Hi. I have a stack that displays text in a field so that students can read
> it. However, if the I set the textSize of this field to a largish number,
> such as 80, 100, 120 (so it's big enough for a classroom of students to
> see), then _as I type_ the descenders of characters such as j and g are
> chopped off, until I finish typing. What setting will allow me to display
> the descenders as I type? I've tried adjusting the textHeight and margins,
> but neither seems to do anything. Thanks.

Put this script into the field you're typing in:

on keyUp
  put the selectedChunk into tChunk
  select empty
  select after char (word 4 of tChunk) of me
end keyUp

It makes the text flicker a bit as you're typing, but at least the
descenders show up.

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list