the fontSizes not working well on Win32

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
massung
Posts: 93
Joined: Thu Mar 19, 2009 5:34 pm

the fontSizes not working well on Win32

Post by massung » Mon Jan 25, 2010 6:01 pm

Try as I may, I can't get this function to work well. Anyone have any hints for me or do I need to submit a bug report? Even just opening the message box and doing:

Code: Select all

put the fontSizes of "Courier New"
That results in "0" for me any many friends (on XP, Vista, and Windows 7). "Courier" returns 3 sizes, but it's the exception - and certainly Courier has far more than 3 acceptable font sizes available ;).

Jeff M.

oliverk
Site Admin
Site Admin
Posts: 53
Joined: Mon Feb 27, 2006 2:16 pm

Re: the fontSizes not working well on Win32

Post by oliverk » Mon Jan 25, 2010 6:24 pm

Hi Jeff,

I've never actually used the fontSizes function in an application before, but a quick look in the docs for the function at: http://docs.runrev.com/Function/fontSizes suggests that a return value of 0 means the font will work at any size you choose.

What are you using the function for? Perhaps there is another way to achieve the same result.

Regards
Oliver
Oliver Kenyon
Software Developer
Runtime Revolution

massung
Posts: 93
Joined: Thu Mar 19, 2009 5:34 pm

Re: the fontSizes not working well on Win32

Post by massung » Mon Jan 25, 2010 6:49 pm

Ugh. Helps if I [completely] read the docs. This was me being stupid...

Thanks for pointing out the obvious to me :D

Jeff M.

Post Reply