Upgrade to Flex 4, Halo theme, embedded font doesn't work for Spark Label

I'm upgrading an application to Flex 4 from Flex 3.5 using the Halo theme.  If I include a Spark Label in my application the Spark Label does not render the text using the font I defined in my CSS.  My MX Labels render fine.  Here is an example application that replicates my issue.  So,
Compile and run using Spark theme.  Both Labels render the text with the correct font.
Compile and run using Halo theme.  Only MX Label renders the text with the correct font.
Is it not possible to do what I want?
Thanks
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                  xmlns:s="library://ns.adobe.com/flex/spark"
                  xmlns:mx="library://ns.adobe.com/flex/mx"
                  minWidth="250" minHeight="250">
     <fx:Style>
          @namespace mx "library://ns.adobe.com/flex/mx";
          @namespace s "library://ns.adobe.com/flex/spark";
          @font-face
               fontFamily: Verdana;
               fontWeight: normal;
               fontStyle: normal;
               src: url("./style/fonts/verdana.ttf");
               embedAsCFF: false;
          @font-face
               fontFamily: VerdanaCFF;
               fontWeight: normal;
               fontStyle: normal;
               src: url("./style/fonts/verdana.ttf");
               embedAsCFF: true;
          mx|Label
               font-family: Verdana;
          s|Label
               font-family: VerdanaCFF;
     </fx:Style>
     <fx:Declarations>
          <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
     <s:VGroup>
          <mx:Label text="My text" />
          <s:Label text="My text" />          
     </s:VGroup>
</mx:Application>

I think you might need to set the fontLookup:
        s|Label
            font-family: VerdanaCFF;
            fontLookup: "embeddedCFF";     

Similar Messages

  • Embedding fonts - doesn't work

    Another day, another Flash Catalyst problem.
    I check the box to embed fonts when I publish, only when I preview my output they are nowhere to be seen. Bottom line, Flash Catalyst doesn't work on a Mac. I've had nothing but problems. This program isn't ready for prime time at all. I've used betas of programs that are much more polished than this. I believed that there wasn't suppossed to be major issues when using FC with 10.7 Lion.
    That's not true, this program is so broken and flawed and such a frustration to use. Adobe can't be bothered to update even though they've had access to Lion for months. If they can't make a program that works then why bother releasing for the Mac platform at all?
    Lets see:
    1. Placeholders don't work.
    2. Importing Illustrator files doesn't work.
    3. Publishing with embedded fonts doesn't work.
    These aren't minor issues. They are MAJOR PROBLEMS!!! How did Flash Catalyst see the light of day on the Mac? Why was it released? Are these problems isolated to 10.7? Why aren't these MAJOR DEALBREAKERS listed? Can anyone at Adobe stand up and admit that this Flash Catalyst on the Mac is a total fiasco?

    I am sorry you are having trouble. I'm not running Lion on my Mac (issues with LDAP and a corporate network). With something like you are describing I would try two things before contact Adobe support. The first would be to try a fresh install. Maybe the OS upgrade wonked something. The other thing I would make sure is that my JAVA runtime is up to date. Flash Catalyst is built on Eclipse, which in turn in built on JAVA.
    Beyond, that these issue are more that I can help with.
    Chris

  • Just upgraded to 6.1 but my iTunes password doesn't work for my restore

    Just backed up my iPhone4 in iTunes, transferred purchased items to my iTunes library, and then updated the IOS to 6.1.  Now iTunes is giving me the option to restore from my backup, but it wants a password, and my iTunes password doesn't work!  I was never asked for a new password for by backup so I'm very surprised my iTunes password doesn't work.  I just logged into this forum with my iTunes password so I know it is still active.  Anyone have any ideas of what I should do next?  Thanks!

    I was wrong --- turns out I did create a password long ago for my first backup, different than my iTunes password, and fortunately I was able to remember it.  The restore worked fine once I gave it the password that it wanted. 

  • In my iTunes on the iPad I've got 95 items that are stuck and I tried swiping them to delete them but it doesn't work dose any one know how to empty the download tab

    In my iTunes on the iPad I've got 95 things that are stuck and I tried swiping them to delete them but it doesn't work dose any one know how to empty the download tab

    Thanks, but, using the "free" version of Reader, there is no opportunity to open nor import the xml data - the menu options do not exist - there is no import listed.
    If we try to open the xml file directly, then we get an error - something to the effect of "unsupported file type, or the file is corrupted".
    I just noticed in my Pro version that there is the command File ->Form Data ->Import Data to Form... command. Is this what you are referring to?
    What do you recommend? Perhaps the easiest thing to do would be to purchase a few copies of Acrobat Pro for the reservations people to use? I was hoping that the free version of reader would do it, but perhaps not?
    Thanks again,
    Rob

  • How do I uninstall Firefox 4 & get previous version back? The new upgrade has problems & doesn't work for me.

    How do I uninstall Firefox 4 and get the previous version back?
    The upgrade has many problems and doesn't work for me.

    new version is the worst Firefox ever, no lip.

  • How do I restore column headings in Response table after accidently deleting them? Undo doesn't work.

    How do I restore column headings in Response table after accidently deleting them? Undo doesn't work (only seems to go back one level). I also have so many headings I won't be able to type them in manually!

    With the help of information from user, ptressel, in [https://support.mozilla.org/en-US/questions/1032154#answer-673322 a post here about the existence of sessionstore.js when version 33 was released], I was able to easily recover my tabs and tab groups as follows:
    # close Firefox and, perhaps, allow a few seconds (30s?) for any final closing of files;
    # check to see if you have a sessionstore.js file in your profile folder, named like the one I documented in my original post above;
    # if it is not timestamped prior to the discovery of your problem, open the sessionstore-backups folder;
    # check if the recovery.js file is suitably timestamped and, if not, the recovery.bak.
    # At this point, you are likely to find that none of them are prior to your problem occuring. If so, open your backups of this folder and go through steps 2-4 to find a file prior to your problem occuring.
    # When you find a file, copy it to the root of your current profile folder and name it, "sessionstore.js"
    # Open Firefox. Mine opened up as desired.
    This is a Windows solution. Sorry I can't comment on other platforms, but I'd bet that as this is just a file copy and renaming, it is likely the same.
    For Windows users, you may find you need to sign out and login as an administrator in order to access the backups. You need not logoff your standard account, but do have Firefox closed as described above.
    Hope that helps.

  • Can't activate the location service on my ipad2 after upgrading to ISO7! What's wrong? Doesn't worked with the resets!!!!

    Can't activate the location service on my ipad2 after upgrading to ISO7! What's wrong? Doesn't worked with the resets!!!! Can someone help please?

    Hello I found my answer on Settings>>Restritions! :)
    Thanks to me:)

  • Since upgrading to iOS 6.1 my home button doesn't work. Is there a fix?

    Since upgrading to iOS 6.1 my home button doesn't work. Is there a fix??

    Restore your iPhone with current iTunes on your computer. See if fixed. If still problem and if there is Warranty or AppleCare make Genius reservation or set up Service and take or send to Apple for resolution. If no coverage, try Virtual Home Button, tap Settings App > General > Accessibiltiy > Assistive Touch > ON > tap new white screen button > Home.

  • When I insert headphones and then I remove them, volume control doesn't works.

    When I insert headphones and then I remove them, volume control doesn't work more, and I have to operate on system preferences=>sound=>output volume. Whay does it happens and  how can I fix it?

        Yes, I am using 09 with out issues.  Just have to remember to use "open with 09" or open pages 09 first then my document.
      I create some amazing cards and posters with 09 that when on a PC I would have to use both Word and Publisher to create.  Flipping back and forth. 
      Apple if you're  listening please, give us back our layout options and even add a few more design options like beveled and 3D text.

  • ZawgyiOne Font doesn't work after updating to iOS 7.1, please advice

    ZawgyiOne Font doesn't work after updating to iOS 7.1, please advice

    hi Mr.Sianpu
    nice to know you, my name Kiemtheng from Cambodia, i got a problem with Khmer Unicode font at my ipad which i just update from IOS 7.0.1 to ISO 7.1.1 , It not support with Khmer font which used to appear at the old version , the problem happen as the same Lian Tuang Question, and can you tell me how to fix this problem , hope to hear a good new from your, for khmer unicode font which support with Nokora and Battombong
    http://adkhmer.com/app/iphone/font_khmer_ios7_no_jailbreak/Nokora.mobileconfig
    https://docs.google.com/file/d/0B8798SqaxK-JS1B5T3hjNkJPQUE/edit?pli=1
    thanks

  • After upgrading from ITunes6 on ITunes 7 my videos doesn´t work

    after upgrading from ITunes6 on ITunes 7 my videos doesn´t work. there are no error messages, popups or ballons. songs are no problem, only the videos?!
    Can somebody help me?
    Thanks
    Cross

    hmmmm. let's try checking to see if they will still play in your current version of QuickTime.
    in itunes, right-click on one of the videos that is causing the grief, and select "Show in Windows Explorer".
    right click the icon of the file in the Explorer window that comes up and select "Open With ...", and try to open it with your QuickTime player. does it play there or do you get funny business with that too?

  • Embedded font not working in Spark Label control?

    Hi,
    I'm trying to use embedded fonts with the Spark Label (formerly SimpleText) control. I'm using SDK 4 build 10485 now, but I could not manage it in Beta 1 neither.
    I'v been playing with cff: true/false, embedAsCFF:true/false but no results.
    I've added my test application where it does work with the Halo <mx:Label> control, but not with the Spark <s:Label> control.
    So, no compiler errors, but the Spark label control shows a serif (Helvetia?) font where it should be sans as does the Halo control.
    Can anybody help me out here?
    Thanks
    Jan
    As I get the message 'the content type of this attachment is not allowed' on uploading the MXML file, here is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        minWidth="1014" minHeight="768"
        backgroundColor="#7B7374">
        <s:layout>
            <s:VerticalLayout paddingBottom="8" paddingLeft="8" paddingRight="8" paddingTop="8" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            @font-face {
                src: url("project/assets/thesans/THSP____.TTF");
                fontFamily: HaloSans;
                fontWeight: normal;
                advancedAntiAliasing: true;
                unicode-range: U+0021-U+007B;
            @font-face {
                src: url("project/assets/thesans/THSP____.TTF");
                fontFamily: SparkSans;
                fontWeight: normal;
                advancedAntiAliasing: true;
                unicode-range: U+0021-U+007B;
                embedAsCFF: true;
            .mySparkSans {
                fontFamily: SparkSans;
                fontSize: 24;
            .myHaloSans {
                fontFamily: HaloSans;
                fontSize: 24;
        </fx:Style>
        <s:SkinnableContainer>
            <s:Label styleName="mySparkSans" text="This should be TheSans but it is not...., notice the characters 'ag'"/>
            <mx:Label styleName="myHaloSans" text="This is TheSans, notice the characters 'ag'" top="100"/>
        </s:SkinnableContainer>
    </s:Application>

    Hi,
    I'm trying to use embedded fonts with the Spark Label (formerly SimpleText) control. I'm using SDK 4 build 10485 now, but I could not manage it in Beta 1 neither.
    I'v been playing with cff: true/false, embedAsCFF:true/false but no results.
    I've added my test application where it does work with the Halo <mx:Label> control, but not with the Spark <s:Label> control.
    So, no compiler errors, but the Spark label control shows a serif (Helvetia?) font where it should be sans as does the Halo control.
    Can anybody help me out here?
    Thanks
    Jan
    As I get the message 'the content type of this attachment is not allowed' on uploading the MXML file, here is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        minWidth="1014" minHeight="768"
        backgroundColor="#7B7374">
        <s:layout>
            <s:VerticalLayout paddingBottom="8" paddingLeft="8" paddingRight="8" paddingTop="8" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            @font-face {
                src: url("project/assets/thesans/THSP____.TTF");
                fontFamily: HaloSans;
                fontWeight: normal;
                advancedAntiAliasing: true;
                unicode-range: U+0021-U+007B;
            @font-face {
                src: url("project/assets/thesans/THSP____.TTF");
                fontFamily: SparkSans;
                fontWeight: normal;
                advancedAntiAliasing: true;
                unicode-range: U+0021-U+007B;
                embedAsCFF: true;
            .mySparkSans {
                fontFamily: SparkSans;
                fontSize: 24;
            .myHaloSans {
                fontFamily: HaloSans;
                fontSize: 24;
        </fx:Style>
        <s:SkinnableContainer>
            <s:Label styleName="mySparkSans" text="This should be TheSans but it is not...., notice the characters 'ag'"/>
            <mx:Label styleName="myHaloSans" text="This is TheSans, notice the characters 'ag'" top="100"/>
        </s:SkinnableContainer>
    </s:Application>

  • Modules with Halo Theme causes errors in other modules with Spark theme

    Hi,
    We have a large application which calls several modules, some old and some new.
    Most modules and the main App are using only MX components and were styled based on default mx theme, thus we want to compile these modules with the flag to use the old Halo theme.
    But when we did this our new module that contains spark components (Which isn't compiled with this flag) couldn't find the default skin for the spark components.
    Using the -keep-all-type-selectors flag didn't work in this case.
    Only when we removed the Halo theme flag from other modules and main app it worked.
    Is there any other option?
    Because using the old modules with spark theme causes major change in the appearance of our application.
    Thanks,
    Dafna.

    I think if you mix themes you'll need to specify more styles on the
    non-default theme because the set of globals and other defaults will be
    different.

  • Embedded fonts no longer work

    My website uses embedded fonts and in all previous versions of Firefox those fonts are correctly displayed. In Firefox 5 these embedded fonts are no longer displayed.

    Tim,
    I think both issues you're seeing are the same problem, as I believe the htmlText property uses the TextFieldHTML filter. But I haven't been able to reproduce either issue yet.
    When I set htmlText using the same font as I specified on the stage (or I omit the font tag entirely) I'm seeing antialiased text. If I use a font in the markup that's different than what I specified on the stage I'm getting a fallback font that's antialiased. The fact that I get a fallback font (even when I specify a font I have installed) suggests to me that it's still trying to use an embedded font after the htmlText property is set.
    What happens for you if you do not have a font tag in your HTML? If that looks better there may be a mismatch between font names between the markup and embedding.
    Alan

  • InDesign CS6 Font doesn't work in table cells

    Hi all!
    I'm working in InDesign CS6 on Mac OS 10.6 Leopard.  I have character and paragraph styles defined using a certain font, and they work just fine except when using them in table cells.  I have the character style nested in the paragraph style, which is then used in the cell style.  But it doesn't work.  It inherits everything correctly except for the font.  If I select the text, the font menu tells me it is the correct font, but it displays in a different font.  I've tried exporting to IDML and resaving, but that didn't work.  I'm stumped

    Hi Jeffrey-
    Indeed it should, and I see why using a formatted table would cause conflicts, but I am importing it as an unformatted table already.  Built all styles in InDesign first, then imported as unformatted table.  A few times it did work as expected, but most of the time it steadfastly refused to apply the correct font.
    But in any case, that wasn't my only issue with the tables.  My understanding of importing Excel spreadsheets is that applied table and cell styles will be maintained when the linked file is updated, but local formatting/overrides will be wiped out, which is why I was trying to get the styles working in the first place.  However, after testing, I found that even when I didn't use local formatting/overrides, updating the linked file still broke my InDesign layout.
    In my test, the only thing I did to the imported (unformatted) table was to apply the table/cell styles and adjust column width (which is unavoidable as far as I know - didn't see anywhere I could set column width as part of a style).  But even then an update to the linked file removed all the styles and column widths I had set (and was also highly annoying as it gave me a separate error message about the formatting loss for each and every instance of the spreadsheet).
    Could be a fluke, or could be I'm missing something, but for whatever reason, I just couldn't get it to work

Maybe you are looking for

  • Rows of XML file don't refresh after changes in the file

    Hi Guys, Greetings! I load data from XML to Oracle, use this connection: jdbc:snps:xml?f=C:/xml/test.xml&ro=false&ldoc=true It's all ok in first loading - 10000 rows was loaded. Then I deleted from XML file a couple of rows but in the Operator I'v lo

  • Break up of raw material cost for released finished materials

    Hi All, I have searched various threads before posting this question. Is there any standard report available to view the breakup of raw material cost for a release finished material. I have cost component split report but it shows everything in raw m

  • I have just added one of my email addresses to my newer desktop on MAC mail, how do I download my full email history?

    I have just added one of my email addresses to my newer desktop on MAC mail, how do I download my full email history? At the moment it is only downloading emails from September 2014 - present. I have a MAC OS X version 10.8.5. Any help would be appre

  • I cant start imovie 9.0.4, it just hangs

    I have imovie9.0.4 on iMac and on starting the app it opens then hangs and freezes. Ive updated the software and run disk util to repair, but still no good! Any ideas how I can reinstall or fix when I cant access any menues because its frozen? Thanks

  • Netbeans IDE problem!!

    when i comile a java file named DLSLecturer.java in netbeans it has no problem but when i run it in netbeans, the following error msgs appear while there was no problem running under dos prompt. java.lang.NoSuchMethodError: Login.<init>(LLecturerMain