Page 1 of 1

Awesome Icons

Posted: Tue Oct 27, 2015 9:54 pm
by thims
I have stumbled into a free font called Font-Awesome. It is an iconic unicode vector font with 585 icons that are truly superb. Totally scalable with all the standard web icons for Twitter, facebook, Tux, Win etc etc etc.

They are intended for web designers but I use them in LiveCode like so:

set the useUnicode to true
set the textFont of btn "Whatever" to "FontAwesome"
set the unicodeLabel of btn "Whatever" to numToChar(61555) -- 61555=0xf073 from their "cheat sheet"

and voila a perfect little icon (in this case a calendar) in whatever size I need, but that's not all.

use a field and you can import the graphic as an image and eliminate the necessity of including the font with your stack. like so:

set the useUnicode to true
set the textFont of fld "whereTheSymbolIs" to "FontAwesome"
set the unicodetext of fld "whereTheSymbolIs" to numToChar(61555) -- Calendar
import snapshot from field "wheretheSymbolIs"

then just move the image into a storage stack or wherever you store you images and use it as the icon of a button or whatever

Not exactly at you would like it? No problem you can export it with:
export image Calendar9 to file "Calendar9.png" as PNG

and you can edit it in any image editor and then re-import it via the Import as Control from the file menu.

Re: Awesome Icons

Posted: Wed Oct 28, 2015 1:26 am
by Simon
Hi thims,
In LC8 fontawesome is included :)

Simon

Re: Awesome Icons

Posted: Wed Oct 28, 2015 1:41 am
by thims
What "awesome" news. Sorry ... I couldn't resist.

Re: Awesome Icons

Posted: Wed Oct 28, 2015 9:07 pm
by richmond62
So, where does one get this font?

Re: Awesome Icons

Posted: Wed Oct 28, 2015 9:09 pm
by richmond62

Re: Awesome Icons

Posted: Wed Oct 28, 2015 10:37 pm
by Klaus
Simon wrote:Hi thims,
In LC8 fontawesome is included :)

Simon
Yep, and it looks fantastic!