Page 1 of 1

What is the standard Mac Button Font?

Posted: Mon May 20, 2013 2:46 am
by MouseUp
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.

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 2:50 am
by Mag
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.

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 2:58 am
by Mag
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.

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 4:35 am
by MouseUp
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

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 4:47 am
by shaosean
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..

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 10:42 am
by BvG
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).

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 1:37 pm
by MouseUp
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?

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 1:39 pm
by Mag
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.

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 1:40 pm
by Mag
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?

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 2:43 pm
by MouseUp
Hi Mag, I have iMac OS X 10.6.8 and RunRev v4.6.4.

(I do have "Native Feel" selected.)

Re: What is the standard Mac Button Font?

Posted: Mon May 20, 2013 10:36 pm
by shaosean
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..

Re: What is the standard Mac Button Font?

Posted: Sat May 25, 2013 2:31 pm
by andrewferguson
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.