Upgrade to Flex 4, Halo theme, embedded police does not work for the Label of the spark

I am upgrading an application in Flex 4 to Flex 3.5 using the Halo theme.  If I get a spark in my application the spark label label does not make the text using the font I set in my CSS.  My MX labels make it very well.  Here is a sample application that replicates to my question.  Thus,.

Compile and run using spark theme.  The two labels make the text with the correct font.

Compile and run using Halo theme.  Only the MX label makes the text with the correct font.

Is it not possible to do what I want?

Thank you

<?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 need to put the fontLookup:

s | Label

{

do-family: VerdanaCFF;

fontLookup: "embeddedCFF";

}

Tags: Flex

Similar Questions

  • The research of the embedded index does not work for the PDF file opened with Adobe Reader in a browser

    Due to the way in which we use our Document management system, if we want to search through multiple or large files stored in our DMS PDF we merge PDF together and create an embedded index. This works perfectly well, when you open the PDF file in Adobe Reader standalone. Enter a particular term can bring 100 hits (very quickly) in the Adobe Reader search results pane.

    However, if we launch the PDF with Adobe Reader in Internet Explorer (any version), enter a term to search (contained in document) only get one result, that of the file name of the document itself.

    Unfortunately most of our users will access our DMS documents with internal links.

    Any ideas greatly appreciated.

    K

    It is a problem with Reader 8. You must use that...

    Using Reader 9. It will work well with it.

    -Arnav Agarwal

  • Embedded police does not work on BB10

    Hello

    I am trying to transfer my PlayBook to BB10 application, but I can't make custom fonts to work.

    Here is the code:

    [Embed(source="assets/segoescb.ttf", fontName="Font1", fontStyle="normal", fontWeight= "normal", mimeType="application/x-font", embedAsCFF="false")]
    public static const Myfont:Class;
    
    //...
    
    myLabel.text = "Hello World!";
    myLabel.height = 80;
    myLabel.width = 200;
    
    var myFormat:TextFormat = new TextFormat();
    myFormat.font = "Font1";
    myFormat.color = 0x00FF00;
    myFormat.size = 80;
    
    myLabel.format = myFormat;
    

    In the app the size and color of TextFormat are applied correctly, but police are not responsible and standard police used instead.

    I checked similar posts here, but there is no answer or the problem is not the same.

    The code seems functional to the AIR APIs, and, it works very well for the PlayBook.

    There are the specifics for BB10 embed fonts?

    Any help is appreciated.

    Thank you

    I use embedding fonts and have recently brought my apps on BB10. I use Flash Builder 4.6 and the BB10 3.0.0 SDK. I didn't have problems. I pasted some of my code to hopefully help you identify the problem.

    It's my embed code.

    [Embed(source="embedded_assets/fonts/ssm_ldo.ttf", fontFamily="ssm_ldo", unicodeRange = "U+0020-007E", embedAsCFF="false")]
    public static const SSM_LDO_FontClass:Class;
    

    Here is the code to use.

    var l_text:TextField = new TextField();
    var l_format:TextFormat = new TextFormat();
    l_format.font = "ssm_ldo";
    /* Other format properties set here. */
    
    l_text.embedFonts = true;
    l_text.defaultTextFormat = l_format;
    /* Other field properties set here. */
    l_text.text = a_string;
    
  • License to CF Builder 2 does not work for the upgrade to CF Builder 3.  Suggestions?

    I got CF Builder 2 during a promotion, a few years ago, and CF Builder 3 does not recognize this license number when you try to upgrade.  any ideas?

    Please check pm sent to you. Hope this helps

    Kind regards

    Anit Kumar

  • Embedded police does not, if the original font is not available.

    Dear friends

    I use Macromedia Director MX 2004 version, while I try to embed fonts in 'Insertion, MediaElement, fonts' Director, he was the incorporation and also save the police with the given name and *. while I am runnig that this project to the other system in which the original font is unavailable, embedded police will not charge and the text appears in a default font in system also it shows that this font is missing. Can someone help me on this would be grateful.

    Thanks in advance

    Venki@Chennai

    India

    Thank you adam, it works fine.

  • I need a program to view usable photograph or app to open my pictures to view them, open them in my editing software. Apple makes such a program? Photo does not work for me.

    I have a 27 "iMac, I photograph and videos. The Photos app does not work for me. I would like to have a program that will open my photography let me scroll through the folder of photos and when I find one that I need to change in my photoshop cs6 software I can open the file, then save in my pictures folder.  I am now watching the Mac Book Pro. 15 "the $2499 but I need a usable photo view software. I'm not the editor, import, the shared project, etc., I want only the Viewer.  I have purchase different applications that does not work. The last was the date limits only one that I could find I want but it not work altogether after about 4 days. The name of it is (Viewer). I really want to get another Mac product because I like really everything except the viewer or no photo viewer. Please help, it is very important for me!

    Diana_G100

    If you simply want to watch as download you them from your camera, you can simply use the default built in app Preview. He opens them - that is what I use before deciding that one has need of some 'creative' changes or anything, and then drop them into my own folder of Photos (in my documents) that I created when I decided that I did not care to iPhoto or Photos.

  • the Lenovo g500 mouse does not work after the upgrade to windows 8.1

    I recently upgraded my g500 windows 8 for winows to 8.1. But ever since then, my mouse does not work and the keyboard works only after standby. I tried to restore the default settings, but that didn't help. What can I do to fix this?

    Hello

    If the system is still under warranty,

    I suggest that to call a repairman,

    If this isn't the case, you can try to check the keyboard and the Touchpad connection.

    You can consult this service manual

    http://download.Lenovo.com/consumer/mobiles_pub/lenovo_g400g500g405g505g410g510_hmm.PDF

    Hope this helps

    See you soon!

  • Want to dv6 Notebook PC 7226nr: scan fingerprint hp simplepass does not work after the upgrade to windows 10

    My HP SimplePass fingerprint reader does not work after the upgrade to Windows 10.  Is there a fix for this yet?

    I thought about it.  The upgrade to Windows apparently damaged 10 HP SimplePass software.  Once I uninstalled and reloaded the program, everything started working.

  • T610 with Windows Embedded 7 - the system does not license for the operating system image

    Hello community,

    I bought a refurbished computer ThinClient T610 that is running a Windows 7 Embedded English. The label on the package says, that the computer ThinClient is allowed with W7E. When I now run Easy Tools installed on the computer ThinClient hp to create a USB Image with the German language, everything works fine: the image is downloaded from the web and put on the stick.

    But after you start the stick, the installation program tells me: "the system does not license for the operating system image. What I am doing wrong? The BIOS is already the latest.

    Or y at - it another way to transform the operating system in German? There should be an option to download additional languages, but this particual window has no other options. And I have not found any manual way to download other languages.

    Concerning

    Michael

    Sometimes it can be so easy... ;-)

    So here's my solution:

    1. go on the Web for hp Support site

    2. go in the software and driver download

    3. set the language of driver on the language of your choice (in fact: it was the main problem)

    4. download an operating system image

    5. run the configuration tool and copy the image of an operating system on a flash drive

    6. restart the workstation and install the os

    7. take advantage of your computer ThinClient in the language of your choice

    I don't know, why the hp Easy Tools downloaded the image of evil, but with this solution, that I find myself at the same point, as if they did.

  • Embedded video does not play in the field of browser on os 5.

    Hi all

    I tried to play a video embedded in the field of the Navig. It has worked well in the Simulator. But does not work in the real aircraft. I use 8900. When I open the url in the default browser in 8900 its works perfectly. Y at - it all nedded field of browser settings play audio or the embedded video?

    Am the url is http://devweb.wizzpers.com/chat/seewizzper/wizzperid/30305

    Another problem is the time for video playback in the default browser for the blackberry 8900. When I tried the same thing in android and iphone taking 7-8 seconds to play. But 8900 takes 45 to 60 seconds.

    My code snippet is as shown below

    VerticalFieldManager browserManager = new VerticalFieldManager();

    BrowserField browser = new BrowserField();

    browserManager.add (browser);
    browser.requestContent (url);

    Add (browserManager);

    Any idea about this problem?

    Thanks in advance.

    Sujith.

    I am able to reproduce this problem.  It is caused by a problem with the BrowserField himself.  I don't have a work around for this when using the BrowserField.  You could launch the browser to display the page or play the video directly in your application using the player class.

    Our development team is aware of this problem, which should be resolved in a future version of BlackBerry Device Software.

  • I can't open my apps in creative cloud; whenever I get the trial version and the question to purchase. But I am a member for several years now. We have already removed all apps and installed them, but it does not work. What should do?

    ?  I can't open my apps in creative cloud; whenever I get trial versions and the question to purchase. But I am a member for several years now. We have already removed all apps and installed them, but it does not work. What should do?

    Troubleshooting FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?

  • My colleague his computer was broken, it was Pentecost CS5.5 Pentecost installed upgrading pakket. now, I got a new PC I took me 3 days to discover that CS5.5 does not work on the windows 8.1 folks even 2 of the cat cant tel me that. now, I have installed

    My colleague his computer was broken, it was Pentecost CS5.5 Pentecost installed upgrading pakket.

    Now, I got a new PC I took me 3 days to discover that CS5.5 does not work on the windows 8.1 folks even 2 of the cat cant tel me that.

    Now, I have installed they pc new windows 7 of the Pentecost CS5.5 so should work on that. but after the installation of the upgrade CS5.5 does not show my CS5.5 pakket now I can't upgrade. and the last time it was Pentecost bij adobe support fixed a remote session bij adobe. now that?

    Problem solved by generating a new serial for Photoshop CS 5.5 key

    ~ Sarika

  • After upgrading to LR 6.2 G (grid mode) command shortcut does not work in the library module. How to fix?

    After upgrading to LR 6.2 G (grid mode) command shortcut does not work in the library module. It works well to return to the grid when in the develop module. The problem was not resolved with LR 6.2.1.

    PS: Being a urser LR since 2008 I hate the new import dialog so I have stopped using the program and will do so until the classic dialogue is back. Or it won't and I should start looking for alternatives?

    Rune

    One number of others have experienced this problem - please add your vote and details of this bug report in the Adobe official feedback forum: Lightroom: keyboard shortcut 'G' does not not in the library module.

    A few others have reported that restart the computer immediately after resetting preferences seems to fix the problem.  Also note that you can use the ESC key to exit the view library Loupe return to the display of the grid.

  • new tab (+) does not work after the upgrade to v 23.0.1 forefox

    I had firfox version 22 I guess... Now, today morning I upgraded to v 23. It displays a message from one of the plug-in is not compatible with wud and therefore be disabled. now later I still once downloaded the plug in to check if its works or not but TI worked (as I had already guessed), or its display in modules or plug-ins.

    Now I don't get why the new tab does not work. Not at all. Its so very annoying. I googled the question and tried to reset firefox and the new tab in subject parameter: config. But nothing helped.

    I think that its because of this plug-in I've read somewhere that the parameters can be getting replaced by one of the defective Add-ons.

    Help, please.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    You can use the SearchReset extension to reset preferences to default values.

    Note that the SearchReset extension runs only once and then uninstalls automatically, so it will not appear on the page "> Firefox Add-ons" (topic: addons).

    If you do not keep the changes after a reboot or have problems with preferences, see:

  • image capture does not work with the epson scanner after macOS sierra upgraded

    Image capture no longer works with epson scanner v800 after upgrade. I installed the new drivers from epson, and it still does not work. Just says: "waiting for scanner", but nothing ever happens.

    Drivers Epson macOS 10.12.x specific https://www.epson.com/cgi-bin/Store/support/supDetail.jsp?oid=256062 & infoType = Do wnloads & platform = OSF_M_X12 do not work?

Maybe you are looking for