TIP: Using Unicode chars as icons

Pete pete at mollysrevenge.com
Fri Oct 28 12:54:51 EDT 2011


Thanks for reminding me of that Devin.  I had just started using characters
from symbol fonts as button labels and turning them into images removes my
last concern about doing that.
Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Fri, Oct 28, 2011 at 8:24 AM, Devin Asay <devin_asay at byu.edu> wrote:

>
> On Oct 28, 2011, at 3:48 AM, Michael Kristensen wrote:
>
> > Hi there
> >
> > Icons can be quite space-saving and also pleasing to the eye.
> >
> > But somtimes the hazzle of making the icon in a paint app and import it
> into Livecode and keep it in a hidden place is to much.
> >
> > On a Mac there is a palette calle "Keyboard".
> >
> > It can show the thousands of chars/symbols in a Unicode font.
> >
> > Im sure you can find a symbol there that suits you.
> >
> > The trick is to add the char to the label of the button, not the name.
> >
> > Scale the char/icon by ajusting the textsize and color it as you please.
>
> Thanks for a nice tip, Michael. It is possible to take this one step
> further, to address the possibility that the end user of your stack does not
> have the same fonts installed on their system as you do. You can easily turn
> any character from any font into an image without leaving LiveCode. Simply
> create the character in a field, make it transparent and turn off its
> border. Then issue the command:
>
>    import snapshot from field "whereTheSymbolIs"
>
> This creates an image object on the card that looks exactly like the field,
> no third party image editor needed!
>
> Regards,
>
> Devin
>
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>



More information about the use-livecode mailing list