>>Also, you can check for usual mistakes: missed semicolon (;-), not
applied
>>TextFormat etc.

Well, you saw my code, I see nothing wrong in it, but I could be
overlooking something.  See the code below... it's not working for me.
You shouldn't have to embed if it's a system font though right?
TextField.getFontList() shows both Wingdings and Webdings on my system.
If I place this in a fresh .fla, it doesn't work - what's wrong with the
following code:

//This does not work, it defaults to Arial:
this.createTextField("test_txt", 1, 100, 100, 100, 100);
test_txt.html = true;
test_txt.htmlText = "Hello";
testFormat = new TextFormat();
testFormat.font = "Wingdings";
test_txt.setTextFormat(testFormat);

//This works:
this.createTextField("test_txt", 1, 100, 100, 100, 100);
test_txt.html = true;
test_txt.htmlText = "Hello";
testFormat = new TextFormat();
testFormat.font = "Trebuchet MS";
test_txt.setTextFormat(testFormat);

Even by creating a Wingdings font in the library called "Wingdings" and
using: test_txt.embedFonts = true; it shows nothing.

>>Try to embed it into some textfield on the stage and then trace font
>>name.

How would you do that?  There is no mytextfield.font property. Only
TextFormat.font and TextField (class).getFontList() which shows all the
fonts on the user's system.  

Thanks for your advice,

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of GregoryN
>>Sent: Wednesday, August 30, 2006 12:54 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] TextFormat <Font Face = 'Wingdings' or
'Webdings'>
>>
>>
>>It's "Wingdings" on my machine...  And works well.
>>
>>Try to embed it into some textfield on the stage and then trace font
>>name.
>>Also, you can check for usual mistakes: missed semicolon (;-), not
applied
>>TextFormat etc.
>>
>>
>>--
>>Best regards,
>> GregoryN
>>================================
>>http://GOusable.com
>>Flash components development.
>>Usability services.
>>
>>
>>> =========== Merrill, Jason wrote:
>>> I'm building a text editor in Flash as part of my application and
came
>>> across a bit of a head scratcher for applying the Wingdings and
Webdings
>>> fonts to an HTML Textfield.  The following works fine:
>>>
>>> testFormat = new TextFormat();
>>> testFormat.font = "Arial"
>>> test_txt.html = true;
>>> test_txt.htmlText = "Hello";
>>> test_txt.setTextFormat(testFormat)
>>>
>>> However, I can't figure how to get Wingdings or Webdings to work in
the
>>> 8 player. None of the following work when substituting for line 2 of
the
>>> code above:
>>>
>>> testFormat.font = "Wing Dings"
>>> testFormat.font = "WingDings"
>>> testFormat.font = "Wingdings"
>>> testFormat.font = "wingdings"
>>> testFormat.font = "Webdings"
>>> testFormat.font = "WebDings"
>>> testFormat.font = "Web dings"
>>> testFormat.font = "webdings"
>>>
>>> ??
>>>
>>> Even applying those fonts directly in the IDE to the textfield
doesn't
>>> work.  Does the HTML rendering/ TextFormat Class in the Flash 8
player
>>> not support Webdings or Wingdings?  They are standard windows fonts,
I
>>> have them installed as well as my users, and those faces work in
normal
>>> HTML.  What gives - or am I just using the wrong keywords for the
face
>>> value of each font?
>>
>>
>>_______________________________________________
>>[email protected]
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to