Fixed Width Fonts #2

Sarah Reichelt sarah.reichelt at gmail.com
Mon Jan 28 16:44:59 EST 2008


On Jan 29, 2008 6:13 AM, Scott Rossi <scott at tactilemedia.com> wrote:
> Recently, Mark Swindell wrote:
>
> > Curious thing, though.  I created a script
> > ( below) which works fine when I run it line by line in the debugger,
> > and _sometimes_ when I run it from a button, and then the next time
> > (s), from the same button, it just chugs along and and returns
> > nothing.  Any ideas?
>
> Well, I tried a couple of things:
>
> 1) I added all font names to a variable list, rather than an actual field --
> you should do this to save some speed
>
> 2) I removed the wait you had in your code and got around 5 to 6 seconds to
> process all the fonts I have loaded here (I have kind of a lot loaded)
>
> 3) I added a lock screen and surprisingly got an instantaneous result (less
> than 1 second); I can't say if all the font results are accurate, but I
> recognize a number of monospace font names so I assume they are correct


Scott's method works perfectly for me. I compared the results with
locking and unlocking the screen and they were identical, but with the
lock screen version only taking 2 milliseconds on my font list (which
I expect is a lot shorter than Scott's).

Cheers,
Sarah



More information about the use-livecode mailing list