Font

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Font

Post by Nakia » Wed May 08, 2013 1:57 am

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?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Font

Post by Klaus » Wed May 08, 2013 2:54 pm

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

Post Reply