default textsize and textfont?

Richard Gaskin ambassador at fourthworld.com
Tue Jul 5 18:47:36 EDT 2011


Kee Nethery wrote:

> Actually I think on the Mac it is textfont=Lucinda Grande textsize = 11
>
> On Jul 5, 2011, at 2:55 PM, Kee Nethery wrote:
>
>> On Mac OS X I think the default textsize is 10 and the default textfont is Lucinda Grande.
>> If someone wants to give me the defaults for Windows, (and confirm my guess for the Mac) I'll add it as a note to the livecode documentation.
>>
>> If there is some script command to see what it actually is, that would be useful also.

Stepping into Jacque's time machine, since LiveCode is a cross-platform 
dev tool of course setting the font and size for control text is a 
simple one-step action:  just set the useSystemFont property and the 
engine will determine the current font settings and apply them 
appropriately.

But unfortunately, that only works if you have Jacque's time machine:
<http://quality.runrev.com/show_bug.cgi?id=5190>

In the here-and-now, you'll have to set these to the published defaults 
and hope that the user hasn't changed them.

On Windows 7 the font is Segoe UI:
<http://msdn.microsoft.com/en-us/library/aa511282.aspx>

While the true point size is 9, since LiveCode uses px rather than pt I 
find 12 is a good match.

On Linux I set the font to "Ubuntu", which works great on Ubuntu and 
will fall back to the engine's default, Helvetica, if not found, which 
is generally okay for most distros.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv





More information about the use-livecode mailing list