What is the standard Mac Button Font?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
MouseUp
Posts: 41
Joined: Sun Feb 14, 2010 3:41 pm

What is the standard Mac Button Font?

Post by MouseUp » Mon May 20, 2013 2:46 am

What is the standard Mac Button font and size? It is really surprising that the standard Mac default font is not the one selected when you drag a new button onto a LiveCode card.

It used to be Chicago font at size 12, then Charcoal. I tried Charcoal but it isn't right on my Mac. Why can't Run Rev make all the default fonts and sizes more standard to help folks make more professional looking apps? It seems this should be a given.
Thanks,

MouseUp

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: What is the standard Mac Button Font?

Post by Mag » Mon May 20, 2013 2:50 am

If you are talking of OS X (I mean not MacOS 8 and 9), the font should be Lucida Grande 13. If you don't choose any font in the Inspector it should be this automatically.
Last edited by Mag on Mon May 20, 2013 3:07 am, edited 1 time in total.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: What is the standard Mac Button Font?

Post by Mag » Mon May 20, 2013 2:58 am

The button created by LiveCode it seems the same as the one created by Xcode to me. At least as appearance, actually the antialiasing looks like better in Xcode project, this could be because LiveCode maybe uses Carbon control instead of Cocoa (I think).

PS
OT I don't receive any notifies of new replay since the new RR site is live.
Attachments
44.png
45.png

MouseUp
Posts: 41
Joined: Sun Feb 14, 2010 3:41 pm

Re: What is the standard Mac Button Font?

Post by MouseUp » Mon May 20, 2013 4:35 am

Thanks for the responses. Weird. When I drag a new button and look at the font that was used I get no name or size showing in the object editor/Text Formatting pallete. The font name and font size fields are actually empty! If I type in a size such as 10 then next time I select it, the font name Lucida Grande does show and the size does show 10.

The font size is for some reason defaulting to size 10 on my Mac OS X iMac (even though it isn't indicated at first check). Is this a bug? Is there a way to set these preferred settings as my system wide global default button font and font size in RunRev? Or do I have to go through this dance every time I drag a button?

PS: I am running LiveCode v4.6.4
Thanks,

MouseUp

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: What is the standard Mac Button Font?

Post by shaosean » Mon May 20, 2013 4:47 am

The default font and size is set during start up of the IDE, you can include a routine in your startup handler for your compiled apps so the right font and size is used depending on the platform.. Just set the font and size on the stack and all cards and controls will inherit from there..

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: What is the standard Mac Button Font?

Post by BvG » Mon May 20, 2013 10:42 am

Make sure that the cRevGeneral group is copied to your standalone app when you create it (it should be there by default when you build the app usually). It includes the default font settings (and some other things, like the answer dialogue sizes and other small presets).
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

MouseUp
Posts: 41
Joined: Sun Feb 14, 2010 3:41 pm

Re: What is the standard Mac Button Font?

Post by MouseUp » Mon May 20, 2013 1:37 pm

Hi again. Perhaps I was unclear... My question is really about just using LiveCode- not in making a standalone. When I am creating scripts and dragging buttons on cards I am not getting the Lucida Grande 13 in my LiveCode default buttons. Is this a bug and can I change the way LiveCode works so that its default is corrected? Perhaps my Mac OS X fonts are corrupted somehow?
Thanks,

MouseUp

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: What is the standard Mac Button Font?

Post by Mag » Mon May 20, 2013 1:39 pm

MouseUp wrote:Thanks for the responses. Weird. When I drag a new button and look at the font that was used I get no name or size showing in the object editor/Text Formatting pallete. The font name and font size fields are actually empty!
This is correct, you don't need to specify font and size. LC automatically provides the correct font and size accordind to Loock and size of the target platform. If you specify something, you constarin LC to use them regardless the platform in which your standalone runs.

PS
Check in the "View" menu -> "Look and feel" menu item what is your choice, the default one is "Native Theme".
Also notice that you can specify some basic setting of the newly created buttons in LC preferencees (actually only object sizes), remember to leave the standard choice there.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: What is the standard Mac Button Font?

Post by Mag » Mon May 20, 2013 1:40 pm

MouseUp wrote:Hi again. Perhaps I was unclear... My question is really about just using LiveCode- not in making a standalone. When I am creating scripts and dragging buttons on cards I am not getting the Lucida Grande 13 in my LiveCode default buttons. Is this a bug and can I change the way LiveCode works so that its default is corrected? Perhaps my Mac OS X fonts are corrupted somehow?
Which version of OS are you using?

MouseUp
Posts: 41
Joined: Sun Feb 14, 2010 3:41 pm

Re: What is the standard Mac Button Font?

Post by MouseUp » Mon May 20, 2013 2:43 pm

Hi Mag, I have iMac OS X 10.6.8 and RunRev v4.6.4.

(I do have "Native Feel" selected.)
Thanks,

MouseUp

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: What is the standard Mac Button Font?

Post by shaosean » Mon May 20, 2013 10:36 pm

In the Home stack script look for the revInternal__InitialiseDefaults handler and you can change the font and size in there.. The default size is 11 on Mac OS X, whereas it should be 13.. You will still see some differences as Rev is a Carbon app..

andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Re: What is the standard Mac Button Font?

Post by andrewferguson » Sat May 25, 2013 2:31 pm

Mag wrote:actually the antialiasing looks like better in Xcode project, this could be because LiveCode maybe uses Carbon control instead of Cocoa (I think).
Cocoa was one of the stretch goals that was funded during the Kickstarter campaign. Hopefully we will see Cocoa come to LiveCode soon.

Post Reply