building a font picker

Alex Rice alrice at ARCplanning.com
Sat Jul 19 02:14:00 EDT 2003


On Friday, July 18, 2003, at 10:27  PM, Howard Bornstein wrote:

>  This is using my previous suggestion of comparing two letters
> rather than the entire alphabet.

Howard thanks. Yes this method is fairly quick. Actually I was hoping 
for a ready-made system property like "the fixedWidthFontFamilies" or 
something ;-)

re: comparing I vs. Z or the whole alphabet. Picking two letters I 
would take I and M. I think M is supposed to be the widest letter in 
general, hence an "em-dash"... I could be wrong about that.

But my reason for using entire alphabet instead of I and Z is that I 
think it could be possible for some font to have an I and Z have a 
difference in width that is less than the resolution of "the 
formattedWidth". I can't visualize what the font would be, but it's 
certainly possible. That's why I would make it more reliable by 
comparing multiple letters. Thoughts?

> The key to this speed, btw, is the lock screen command.

Yep I am doing that too.

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
http://ARCplanning.com




More information about the use-livecode mailing list