Solved

Flex 3.0 embedded fonts

Posted on 2009-06-28
1
476 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

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

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

734 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