Icon fonts in iOS

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
grimaldiface
Posts: 43
Joined: Tue Apr 08, 2008 9:56 pm
Location: Purdue University

Icon fonts in iOS

Post by grimaldiface » Sat Jan 10, 2015 11:07 pm

Hi all-- I'm interested in installing iconfonts (such as http://www.flaticon.com/) to use for mobile icons, instead of using images. This would make it much easier to scale and look really sharp. Especially when the icon is only something simple like a chevron.

I have downloaded and installed some icon fonts, but they just print out as letters in livecode. Has anyone had success using icon fonts in LC? I believe MOBgui uses it, so I'm sure it's possible.

Thanks!

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

Re: Icon fonts in iOS

Post by Simon » Sun Jan 11, 2015 12:31 am

Hi grimaldiface,
You have to include the font in the standalone "Copy Files".

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

grimaldiface
Posts: 43
Joined: Tue Apr 08, 2008 9:56 pm
Location: Purdue University

Re: Icon fonts in iOS

Post by grimaldiface » Sun Jan 11, 2015 12:33 am

Simon wrote:Hi grimaldiface,
You have to include the font in the standalone "Copy Files".

Simon

Sorry, I should clarify. I am able to get the custom fonts onto the mobile app through copy files. I do this with other fonts all the time, but for whatever reason icon fonts don't seem to work.

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

Re: Icon fonts in iOS

Post by Simon » Sun Jan 11, 2015 12:41 am

Looking at http://www.flaticon.com/ they aren't fonts at all (unless you converted them).
So, kind'a confused as to what you are looking for. To answer your first question;
Has anyone had success using icon fonts in LC?
Yes.
Is wingdings everywhere? You can test with them.


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

grimaldiface
Posts: 43
Joined: Tue Apr 08, 2008 9:56 pm
Location: Purdue University

Re: Icon fonts in iOS

Post by grimaldiface » Sun Jan 11, 2015 1:06 am

Hmmm, wingdings seem to work.

I found a flaticon.ttf file somewhere. It installed on my computer just fine. Maybe a better question is if someone knows of good mobile icon fonts that work well with LC

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

Re: Icon fonts in iOS

Post by Simon » Sun Jan 11, 2015 2:02 am

You should be able to take the svg images from http://www.flaticon.com/ and use this http://fontello.com/ to create your own font.

Simon
Edit; Oh yes, they are actually called glyph fonts
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

grimaldiface
Posts: 43
Joined: Tue Apr 08, 2008 9:56 pm
Location: Purdue University

Re: Icon fonts in iOS

Post by grimaldiface » Sun Jan 11, 2015 9:42 am

Awesome! thanks, Simon! I'll give that a shot....

grimaldiface
Posts: 43
Joined: Tue Apr 08, 2008 9:56 pm
Location: Purdue University

Re: Icon fonts in iOS

Post by grimaldiface » Mon Jan 12, 2015 12:23 am

Got it working. They didn't work originally because the glyphs were mapped to weird unicode codes, to "a,b,c,d, etc." Fontello lets you create your own code mapping so it's much easier to type the glyphs. Thanks!

Post Reply

Return to “iOS Deployment”