default textsize and textfont?

Terry Judd tsj at unimelb.edu.au
Tue Jul 5 19:40:23 EDT 2011


Can't you just query the effective textFont and textSize of a 'virgin'
stack? On OSX this returns Lucinda Grande and 11 as it should.

Terry...


On 06/07/2011 08:47 AM, "Richard Gaskin" <ambassador at fourthworld.com> wrote:

> 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
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne







More information about the use-livecode mailing list