Icons based in MobGUI fonts

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
donizeti.borges
Posts: 16
Joined: Tue Sep 03, 2013 8:33 pm

Icons based in MobGUI fonts

Post by donizeti.borges » Fri Jan 17, 2014 6:24 pm

Hi

When I try to use mobi gui mobguicons-1 in design mode, the font doesn't appears correctly, but when I run on mobile emulator works fine.

The mobguicons-2 works fine in both sides.

Regards,

José Donizeti Borges

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Icons based in MobGUI fonts

Post by splash21 » Sat Jan 18, 2014 12:55 am

Hi, José. What version of LC and OS are you using? Can you post a screen shot?
LiveCode Development & Training : http://splash21.com

Pronosis
Posts: 1
Joined: Sat Jan 18, 2014 7:21 am

Re: Icons based in MobGUI fonts

Post by Pronosis » Sat Jan 18, 2014 7:25 am

I would concur that there is a problem with changing an icon in the normal state. I am trying to use another True Font Icon set and I can change the "touched" state without a problem, but the "normal" state simply displays the alphabetic letter of the font set. I think it is fine when it is a normal button, it only seems to be an issue when behaving as an "option" button.

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Icons based in MobGUI fonts

Post by splash21 » Sat Jan 18, 2014 11:27 am

Pronosis wrote:I would concur that there is a problem with changing an icon in the normal state. I am trying to use another True Font Icon set and I can change the "touched" state without a problem, but the "normal" state simply displays the alphabetic letter of the font set. I think it is fine when it is a normal button, it only seems to be an issue when behaving as an "option" button.
Hi, Pronosis. Can you tell us which version of LC, which OS and which font? MobGUI doesn't alter font appearances to display line / filled icons, it just switches between uppercase and lowercase. Does the font you are using have line and filled icons? The reason that you can specify different fonts (and characters) for normal and touched state is that you may have found icons from different fonts that you can us in this way. MobGUI pairs the line and filled icons in the same letter, aA, bB, cC, etc... for convenience, but you are free to use different characters from different fonts if required.
LiveCode Development & Training : http://splash21.com

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Icons based in MobGUI fonts

Post by Simon » Sat Jan 18, 2014 11:51 am

Hi John C,
Does one have to use Copy File to include the font?
Or did you take care of that?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Icons based in MobGUI fonts

Post by splash21 » Sat Jan 18, 2014 11:57 am

Hi, Simon. I put the fonts in a 'Fonts' folder then include that folder using the 'Copy Files' pane in Standalone settings. Then you can just add and remove font files from that folder as required.
LiveCode Development & Training : http://splash21.com

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Icons based in MobGUI fonts

Post by Simon » Sat Jan 18, 2014 12:08 pm

Hi John,
I guess that is sort of at least one of the problems above...
Correct me if I'm wrong but;
You must copy the mobguiconsx.ttf in the standalone settings otherwise letters will show up not icons :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

robl
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 62
Joined: Wed Dec 22, 2010 9:50 pm
Location: 3rd planet from the Sun

Re: Icons based in MobGUI fonts

Post by robl » Sat Jan 18, 2014 5:06 pm

Simon:

Correct. You need to tell LiveCode (in the standalone settings) to copy/include the font files in the standalone app. Otherwise, when it is launched on the device, the font will be missing. The device will use a built-in system font instead, resulting in it being just a single large character instead of an icon.

I don't think a plug-in can easily automate that the above step. This is a manual step and should be one of the first things you do, at the same time you tell LiveCode you want it to build for iOS or Android instead of Mac.

R/ Robert

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Icons based in MobGUI fonts

Post by splash21 » Sun Jan 19, 2014 1:13 am

Thanks - that's definitely worth adding to the docs.
LiveCode Development & Training : http://splash21.com

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Icons based in MobGUI fonts

Post by Simon » Sun Jan 19, 2014 1:45 am

Hi John,
I was thinking that you might have done some automagic to the Copy Files. :D
Until I tested it.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply

Return to “MobGUI”