On Feb 25, 2006, at 11:50 AM, [EMAIL PROTECTED] wrote:

I guess we have been over this before but I am still not understanding a practical method. When I draw a canvas on mac, I can set the textsize g.textsize = 9 or 15 or whatever and it works. However, the exact same code on windows give me the same textsize no matter what I set it too (including small system size). I believe that someone said the answer was to set the font in Windows - however I am afraid to do this becuase if I look for a font that is not there, then it will crash the program. Is there a good way to be able get smaller text
to display in Windows?

"System" and "SmallSystem" are aliases for the default system font -- on each platform and even each machine these fonts could be different. It just so happens that on many Windows systems the default fonts are special bitmap fonts that can only be displayed at a single point size.

All you need to do to fix this issue is to change the font to something else, such as Arial, Tahoma, Helvetica, etc... then your sizes will work, but all applications would use Arial.

To only change Windows builds, create a global string Constant "MySystem" and/or "MySmallSystem" and set the Macintosh and Linux properties to "System" or "SmallSystem" as appropriate. Define the Windows property to the font of your choice. Then to apply these font values to Controls in the IDE, you would enter "#MySystem" and the compiler will insert the font from the Constant at compile time. For drawing on a Canvas, just use "Graphics.TextFont = MySystem".

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to