MobGUI Text Field Not Keeping Font Selection in Simulator

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
timvos
Posts: 10
Joined: Tue Dec 13, 2011 6:49 am

MobGUI Text Field Not Keeping Font Selection in Simulator

Post by timvos » Fri Nov 30, 2012 7:03 am

I set the font in my MobGUI iOS text field to Times, then typed some sample text in the MobGUI text box to confirm that it was displaying correctly in my stack. But then when I run the stack in the simulator, the font is switched to Helvetica. The font in my Stack Inspector is set to Times. Does the iOS override the font setting when it launches these native components? How can I keep the font as Times?

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm
Location: Switzerland

Re: MobGUI Text Field Not Keeping Font Selection in Simulato

Post by gpb01 » Fri Nov 30, 2012 7:21 am

Be careful ... on iOS NOT all of your OSX fonts are available.

The attached table (... which is probably not updated) summarize the standard iOS fonts.

Obviously you can include other fonts in your App (... if you have the right ... verify the font copyright) ... see the "iOS LiveCode Notes".

Guglielmo
iOS Fonts.zip
(897 Bytes) Downloaded 322 times

timvos
Posts: 10
Joined: Tue Dec 13, 2011 6:49 am

Re: MobGUI Text Field Not Keeping Font Selection in Simulato

Post by timvos » Fri Nov 30, 2012 8:08 am

Thank you, Guglielmo. I had noticed that the font drop box in MobGUI lists "Times" instead of "Times New Roman". Fortunately, by typing "Times New Roman" into the font box in MobGUI (rather than using the drop box), the simulator then picked up the "Times New Roman" font instead of the Helvetica (which must be the default). Great suggestion. Thanks again.

Post Reply

Return to “MobGUI”