Skip to main content
Known Participant
January 24, 2010
Question

Embedding Unicode Characters

  • January 24, 2010
  • 1 reply
  • 3843 views

Dear List

I am at a loss with flash fonts embedding once again.   I am using Flex 3 for coding and the Flash 4 IDE for font and assets management.

I used the following steps to include the fonts:

CS4 IDE:
------------
1) Library : New Font 'HelveticaNeueRegular'  mapped to Helvetica Neue Regular
2) Export for ActionScript and Export in Frame 1 enabled
3) Class Name: HelveticaNeueRegular
4) Base Class: flash.text.font
5) Publish file as swc

Flex:
----
6) Include the swc file in the project.
7) Code: Font.registerFont(HelveticaNeueRegular);

External XML:
😎 Use an external xml file for all dynamic text.  Define css classes with the span tag

External CSS:
9) Define the styles like this:
.articleText{
    font-family:"Helvetica Neue";
    font-size:15;
    color:#000000;
}

The Problem:
Now the above works fine, but when I try to display special characters such as superscripts or Caron accents they don't show up.

What I've tried:
I've tried to put an additional textfield with the additional characters (ie: ²Žž) to embed on the stage in the CS4 IDE as well as in the library as a separate symbol with the export in 1st frame enabled.  In both cases I included the characters with the text property option 'Character Embedding' > 'Include these Characters' and I also put the characters in the textfield itself.  I used both the real name of the font as well as the Libaray Font name (ie: HelveticaNeueRegular*)

No luck

Any suggestions on how to get these special unicode character outlines to display?

Thank you all

Regards

sk

This topic has been closed for replies.

1 reply

January 24, 2010

are you on pc? or mac?

if youre on pc.. go into accessories and look at the character map and select helvetica nue and let see if it has those characters in its font mapping.

stephan_kAuthor
Known Participant
January 24, 2010

Hi iFezec

Thank you for your reply.  I am on a Mac.  I've checked the font mapping in font book and all the characters are listed.

Hmm ... ?

-sk

January 24, 2010

i had asked that because i too am on a mac but i know that some fonts do not have subsets which is why when you on a pc include a new font you strictly get that font.

macs are different because they have a different way to map a font.

I was hoping this might shed light on the matter.

There is a way to create your own font list using flexbuilder and unicode ranges.  this will be able to assist you in this case scenario but once again you need to be able to view all the characters in the font list for their unicode values.