Skip to main content
Known Participant
September 24, 2009
Answered

Wingdings font not supported in TextLayoutFramework

  • September 24, 2009
  • 1 reply
  • 2842 views

Hi

      I am using textLayout.swc in flex 3 Bulider (SDK3.4Ver)

     when i write code like :-

     SpanElement.fontFamily = "Wingdings";

     no changes in font reflected, it gives default font i.e. Times New Roman.

     So wingdings fontFamily not supported by textLayout Framework.

     If anybody know how wingdings font is used in textLayout, please reply.

     its urgent.

This topic has been closed for replies.
Correct answer Abhi.G.

Hi,

Let's say you have:

var span:SpanElement = new SpanElement();

Then, instead of

span.text = "A"; // U+0041

try

span.text = String.fromCharCode(0xF041);

Abhishek

(Adobe Systems Inc.)

1 reply

Participating Frequently
September 24, 2009

Hi Arvind,

I don't know all the details here, but I'm sharing information I got from the experts in this area:

Wingdings font uses a format 4 cmap which maps code points in the range F000-F0FF.

You'll need to add 0xF000 to each character code (in the range 0x00-0xFF) in the String you want to display.

For example, to get the Wingding symbol for the character 'A' (U+0041), you'll need to use the code point 0xF041 rather than 0x0041.

Please let me know if that does or doesn't work.

Abhishek

(Adobe Systems Inc.)

Known Participant
September 29, 2009

hi abhishek

              I try to use it but i am not able to get right output , please give me detail information how i use 0xF041,

               anyway thanks a lot for replying .

               Please let me know if u have anymore information regarding this.

Abhi.G.Correct answer
Participating Frequently
October 9, 2009

Hi,

Let's say you have:

var span:SpanElement = new SpanElement();

Then, instead of

span.text = "A"; // U+0041

try

span.text = String.fromCharCode(0xF041);

Abhishek

(Adobe Systems Inc.)