Page 1 of 1

Font

Posted: Wed May 08, 2013 1:57 am
by Nakia
Hi,

I have almost finished my first desktop application but have noticed an issue with the Font in the Standalone.
Whilst building the Application each of my objects have no specific "Font" selection applied and I presume it uses the default system font. The application in the IDE looks good but when I build the standalone
it looks rubbish and doesn't appear to be using the same font the IDE does when running it.

What is the best resolution here?
Include what ever font the IDE using in the standalone?

Re: Font

Posted: Wed May 08, 2013 2:54 pm
by Klaus
Hi Nakia,

FONTS (textfont) are inherited like all other properties.
so just set the textfont for your stack(s) and that should do the trick.

You might want to set the textfont on preopenstack according to the platform!
I always do something like this:

Code: Select all

on preopenstack
 if the platform = "MacOS" then
      put "Lucida Grande" into tFont
      put 11 into tSize
   else
      put "Tahoma" into tFont
      put 12 into tSize
   end if
   ## more stuff...
  set the textfont of this stack to tFont
  set the textsize of this stack to tSize
end preopenstack
Best

Klaus