Welcome, Guest. Please login or register.
Did you miss your activation email?
31 Jul 2010, 11:40:24 UTC
Forum home
+  flexdeveloper.eu Forum
|-+  Flex and ActionScript 3.0
| |-+  Flex Builder, Flash Builder & Eclipse (Moderators: JMWhittaker, Jan K, thewarpedcoder, James)
| | |-+  how to display wingdings and webdings fonts
« previous next »
Pages: [1] Print
Author Topic: how to display wingdings and webdings fonts (Read 696 times)
arjunender
Newbie FD
*
Posts: 13


« on: 21 Jan 2010, 06:47:54 UTC »

how to display wingdings and webdings fonts in htmltext
for ex:

text.htmlText = "<FONT face='Wingdings' >Ø</FONT>"
which is not working

any suggestions

thanks in advance
Logged
flexy
flexdeveloper.eu
Guru/Addict FD
*****
Posts: 3,155


Recovering Coffee Addict & Adobe Expert


WWW
« Reply #1 on: 22 Jan 2010, 08:55:12 UTC »

You need to embed the font in the app, then reference the font name it was embedded as.
Logged

arjunender
Newbie FD
*
Posts: 13


« Reply #2 on: 02 Mar 2010, 07:44:56 UTC »

hi,

i have tried embeding font but failed to achive

<mx:Style>
@font-face {
src:url("fonts/Wingdings.ttf");
fontFamily: myWingdings;
advancedAntiAliasing: true;
}
</mx:Style>

<mx:Script>
var myText:String = "<FONT face='myWingdings'>Ø </FONT>"
Text.htmlText = myText;

</mx:Script>

thanks
Logged
sathish
Newbie FD
*
Posts: 70


« Reply #3 on: 03 Mar 2010, 11:15:00 UTC »

do this.

in css
 
@font-face {
src:url("falcon/assets/fonts/TAHOMA.TTF");
font-family: "TAHOMA";
}


.lblThoma
{   
    font-family: "TAHOMA";
}    Tongue
Logged
arjunender
Newbie FD
*
Posts: 13


« Reply #4 on: 05 Mar 2010, 12:24:21 UTC »

hi
thanks for responding

it is working for Text tag but not for font tag in htmltext

my requirement is :

<mx:Script>
var myText:String = "<FONT face='myWingdings'>Ø </FONT>"
Text.htmlText = myText;
</mx:Script>

Thanks


Logged
Pages: [1] Print
« previous next »
Share this on: Twitter Twitter Del.icio.us del.icio.us Digg Digg
Jump to:

©2006-2010 Flexdeveloper.eu/Jodie O'Rourke. All rights reserved.
Adobe®, Adobe® Flash™, Adobe® AIR™ and Adobe® Flex™ are registered trademarks of Adobe Systems Incorporated in the United States and other countries. All rights reserved.

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC