Page 1 of 1

Icon fonts in iOS

Posted: Sat Jan 10, 2015 11:07 pm
by grimaldiface
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!

Re: Icon fonts in iOS

Posted: Sun Jan 11, 2015 12:31 am
by Simon
Hi grimaldiface,
You have to include the font in the standalone "Copy Files".

Simon

Re: Icon fonts in iOS

Posted: Sun Jan 11, 2015 12:33 am
by grimaldiface
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.

Re: Icon fonts in iOS

Posted: Sun Jan 11, 2015 12:41 am
by Simon
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

Re: Icon fonts in iOS

Posted: Sun Jan 11, 2015 1:06 am
by grimaldiface
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

Re: Icon fonts in iOS

Posted: Sun Jan 11, 2015 2:02 am
by Simon
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

Re: Icon fonts in iOS

Posted: Sun Jan 11, 2015 9:42 am
by grimaldiface
Awesome! thanks, Simon! I'll give that a shot....

Re: Icon fonts in iOS

Posted: Mon Jan 12, 2015 12:23 am
by grimaldiface
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!