Solved

Flex 3.0 embedded fonts

Posted on 2009-06-28
1
463 Views
Last Modified: 2013-11-11
My bindable text fields are not displaying and I believe it is a font issue

I have a tag as follows:
<mx:Text id="lastSentenceID" text="{siteData.lastResult.page.lastSentence}"
            x="34" y="558" color="#585956" fontSize="14.81" fontFamily="Helvetica Neue" width="640" height="22" fontWeight="normal" letterSpacing="-.25"/>

I have another tag as follows:
      <mx:Text id="boldGreenQuestionID" text="{siteData.lastResult.page.boldGreenQuestion}"
            x="34" y="544" color="#768E20" fontSize="12" fontFamily="Helvetica Neue" width="640" height="22" fontWeight="bold" letterSpacing=".5"/>

The 2nd text block appears. The only difference is that the fontWeight attribute is bold for one and not the other. If I change it to bold for both it looks fine on the Mac. However, when I upload to the server to view, the type displays, but the fonts are now Times New Roman.

Initially I thought it was an XML issue, but that is not the case because I can view the text when I change the fontWeight to bold. I am using a Flash CS3 file for my fonts and a publish setting of Flash Player 9 as well as 10.

Lastly, to get it to display, I find it odd that my text tag used to be  fontFamily="Helvetica Neue", and I had to remove the space in the name. My style tag has the space between Helvetica and Neue. If I remove the space  in my style tag, I get an error. If I add a space to my text tag, the text is no longer displayed. I removed the space in the text tag above to display the text.

I have attached the CS3 flash file I used to embed the fonts. You will need to change the extension to .fla.

<mx:Style>

      @font-face {

    	src:url("supportFiles/fonts.swf");

    	fontFamily: "Helvetica Neue";

  		}

  		@font-face {

    	src:url("supportFiles/fonts.swf");

    	fontFamily: "Helvetica Neue";

    	fontStyle: italic;

  		}

  		@font-face {

    	src:url("supportFiles/fonts.swf");

    	fontFamily: "Helvetica Neue";

    	fontStyle: bold;

  		}

  		

	</mx:Style>

Open in new window

fonts.txt
0
Comment
Question by:msukow
1 Comment
 

Accepted Solution

by:
msukow earned 0 total points
Comment Utility
The fonts embedded were postscript and not Truetype.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now