Awesome Icons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Awesome Icons
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.
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
Hi thims,
In LC8 fontawesome is included
Simon
In LC8 fontawesome is included

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Awesome Icons
What "awesome" news. Sorry ... I couldn't resist.
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Awesome Icons
Yep, and it looks fantastic!Simon wrote:Hi thims,
In LC8 fontawesome is included
Simon