Why do CFF fonts not work on the mx.Panel's title?

Hi all,
I'm working on a project with a halo panel mixed in with the newer spark components. I'm trying to use the CFF embeded fonts with everything. The mx.Label and s.SimpleText components are working fine. The mx.Panel however, doesn't display it's Title when I set the textFieldClass to mx.core.UITLFTextField.
Am I doing something wrong or is this a bug?
Here is the code to add to a Web/AIR app. Also you will need to create a fonts/times folder in the project root and add your system times new roman fonts to it. Or use the project I am attaching.
    <mx:Panel title="This is a test of the fonts" width="100%" height="100%">
        <mx:Label text="here is a label" x="50" y="50"/>
        <s:Group x="50" y="150" width="300" height="100" >
            <s:SimpleText text="here is simple text" />   
        </s:Group>
    </mx:Panel>
    <fx:Style>       
        @namespace s "library://ns.adobe.com/flex/spark";
        @namespace mx "library://ns.adobe.com/flex/halo";
        /** Define the font used the Virtual Labs **/
        /*Normal*/
        @font-face {
            src: url("../fonts/times/TIMES.TTF");
            fontFamily: "enFont";
            fontStyle: normal;
            fontWeight: normal;
            embedAsCFF: true;
            unicodeRange: "U+0021-U+007E,U+0095,U+0099,U+00A9,U+00AD,U+00AE,U+00AF,U+00B0,U+00B1,U+00B9,U+00B2,U+00 B3,U+2014,U+2022,U+2070-U+208E,U+2103,U+2109,U+212A";
        /*Bold*/
        @font-face {
            src: url("../fonts/times/TIMESBD.TTF");
            fontFamily: "enFont";
            fontStyle: normal;
            fontWeight: bold;
            embedAsCFF: true;
            unicodeRange: "U+0021-U+007E,U+0095,U+0099,U+00A9,U+00AD,U+00AE,U+00AF,U+00B0,U+00B1,U+00B9,U+00B2,U+00 B3,U+2014,U+2022,U+2070-U+208E,U+2103,U+2109,U+212A";
        /*Italicized*/
        @font-face {
            src: url("../fonts/times/TIMESI.TTF");
            fontFamily: "enFont";
            fontStyle: italic;
            fontWeight: normal;
            embedAsCFF: true;
            unicodeRange: "U+0021-U+007E,U+0095,U+0099,U+00A9,U+00AD,U+00AE,U+00AF,U+00B0,U+00B1,U+00B9,U+00B2,U+00 B3,U+2014,U+2022,U+2070-U+208E,U+2103,U+2109,U+212A";
        /*Bold-Italicized*/
        @font-face {
            src: url("../fonts/times/TIMESBI.TTF");
            fontFamily: "enFont";
            fontStyle: italic;
            fontWeight: bold;
            embedAsCFF: true;
            unicodeRange: "U+0021-U+007E,U+0095,U+0099,U+00A9,U+00AD,U+00AE,U+00AF,U+00B0,U+00B1,U+00B9,U+00B2,U+00 B3,U+2014,U+2022,U+2070-U+208E,U+2103,U+2109,U+212A";
        /** These are primarily for the admin tool. **/
        mx|Label, mx|Panel
            fontFamily: "enFont";
            fontSize: 18;
            fontWeight: bold;
            fontLookup: embeddedCFF;
            textFieldClass: ClassReference("mx.core.UITLFTextField");
    </fx:Style>

Looks like a bug.  Please file it.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • Why does Apogee Jam not work with the Ipod Touch 4G

    Hi,
    I have a Apogge Jam an it works fine with my Mac Book, but it does not seem to be compatible with my Ipod Touch 4g.
    Only the Gibbson L&M app recognize the Apogee Jam, but no other App (Ampkit, ....) :-((
    With the IPhone 4 it shall work, can tell me anybody why Apogee Jam is not compatible with the Ipod Touch 4g (
    although the Gibson-App works)?
    Is there perhaps still other Apps which work with the Ipod Touch and Apogge Jam?
    Thanks
    Michael

    I cannot answer the specifics, but I would guess it is a software issue because Griffin iTalk app will cooperate with the Apogee JAM on an iPod Touch 4g running iOS5.  If this app can do it, then one would presume the other apps could be updated to do it also.
    From last week up until yesterday, Apogee actually listed the 4G Touch as a compatible device with the JAM.
    Apparently there was some confusion about Garageband now supporting iPod Touch and its functionality with JAM.

  • Embedded CFF font not working in TLF in latest stable build and higher (4.0.0.13875)

    Hi there,
    We are using embedded fonts with the TLF framework and since upgrading to the latest nightly build or the stable build, it stopped working. Here is a short example:
    <?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/mx" minWidth="1024" minHeight="768" xmlns:mx1="library://ns.adobe.com/flex/halo">
         <fx:Style>
              @font-face {
                   embedAsCFF: true;
                   fontFamily: "Courier";
                   src: url("COURIER.otf");
                   advancedAntiAliasing: true;
                   fontStyle: normal;
                   fontWeight: normal;
         </fx:Style>
         <fx:Declarations>
              <s:TextFlow id="tf" fontSize="20">
                   <s:p fontFamily="Courier" fontLookup="embeddedCFF">hallo is dit courier?</s:p>
                   <s:p>hallo is dit courier?</s:p>
              </s:TextFlow>
         </fx:Declarations>
         <s:VGroup>
              <s:RichEditableText textFlow="{tf}" />
         </s:VGroup>
    </s:Application>
    Any idea why it doesn't work anymore. The same example works fine compiling with build; 4.0.0.11686.
    Thanks,
    marcel panse

    Hi Guys,
    I sort of figured out a figured out a solution/workaround:
    <?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/mx" minWidth="1024" minHeight="768" xmlns:mx1="library://ns.adobe.com/flex/halo"
                      creationComplete="onCreationComplete()">
         <fx:Style>
              @font-face {
                   embedAsCFF: true;
                   fontFamily: CourierCFF;
                   src: url(c:/windows/fonts/COUR.ttf);
                   fontStyle: normal;
                   fontWeight: normal;
         </fx:Style>
         <fx:Script>
              <![CDATA[
                   import flashx.textLayout.compose.ISWFContext;
                   import flashx.textLayout.formats.ITextLayoutFormat;
                   import flashx.textLayout.elements.GlobalSettings;
                   import flash.text.engine.FontLookup;
                   import flash.text.engine.RenderingMode;
                   import flashx.textLayout.elements.TextFlow;
                   import flashx.textLayout.elements.SpanElement;
                   import flashx.textLayout.elements.ParagraphElement;
                   import flashx.textLayout.container.ContainerController;
                   import flashx.textLayout.formats.TextLayoutFormat;
                   import flashx.textLayout.elements.Configuration;
                   import flashx.textLayout.compose.IFlowComposer;
                   import flash.text.engine.FontLookup;
                   use namespace mx_internal;
                   private function onCreationComplete():void {
                        createTextFlow();
                   private function createTextFlow():TextFlow {
                        var config:Configuration = new Configuration();
                        var textLayoutFormat:TextLayoutFormat = new TextLayoutFormat();
                        textLayoutFormat.fontFamily = "CourierCFF";
                        textLayoutFormat.fontLookup = FontLookup.EMBEDDED_CFF;
                        textLayoutFormat.renderingMode = RenderingMode.CFF;
                        config.textFlowInitialFormat = textLayoutFormat;
                        var textFlow:TextFlow = new TextFlow(config);
                        var p:ParagraphElement = new ParagraphElement();
                        var span:SpanElement = new SpanElement();
                        span.text = "Is dit courier?";
                        p.addChild(span);
                        textFlow.addChild(p);
                        var flowComposer:IFlowComposer = textFlow.flowComposer;
                        //option 1: This fixes the problem, but i'm not sure why it works without a fontLookupFunction? Does it default to embedded?
                        //you could also specify your own function always returning embedded, but that would just resolve to the same behaviour..
                        GlobalSettings.resolveFontLookupFunction = null;
                        //option 2: I guess this is the more proper solution, specifying the swfContext. Only what context to choose?
                        //every font has its own css/swf and thus context. A paragraph can select a font (and the bold/italic options),
                        //which font to choose here if there are multiple fonts used in the textflow?
                        textFlow.flowComposer.swfContext = ISWFContext(this.getFontContext("CourierCFF", false, false, FontLookup.EMBEDDED_CFF));
                        var cc:ContainerController = new ContainerController( mainText, 200, 200 );
                        flowComposer.addController( cc );
                        flowComposer.updateAllControllers();
                        return textFlow;
              ]]>
         </fx:Script>
         <s:VGroup>
              <s:NumericStepper /> <!-- remove this stepper and the embedded font will work without option 1 or 2 -->
              <mx:UIComponent id="mainText"/>
         </s:VGroup>
    </s:Application>
    Option 1, setting GlobalSettings.resolveFontLookupFunction to null. Fixes the problem, but i'm not sure why it works without a fontLookupFunction? Does it default to embedded? You could also specify your own function always returning embedded, but that would just resolve to the same behaviour..
    Option 2, specify the context: I guess this is the more proper solution, specifying the swfContext. Only what context to choose? Every font has its own css/swf and thus context. A paragraph can select a font (and the bold/italic options), which font to choose here if there are multiple fonts used in the textflow?

  • Why does set font not work in report generation toolkit?

    I would like to change font and underline when inserting text into a Microsoft Word document. I have tried using the
    "Set Report Font" vi directly in front of an "Append Report Text" vi in my own application. The inserted text at the bookmark is always in the default text mode
    of the document. Is this a bug?
    I also tried the find and replace vi with the same result. Font will not change.
    I also cannot  find any examples of this usage that work. See example vi file below.
    Save at C:\ or adjust the template location accordingly in the vi.
    Can anyone help me out?
    Thanks,
    Chris
    Attachments:
    ChassisTestAutomatic (6.1).vi ‏39 KB
    TestPlan.dot ‏34 KB

    Dhubbell wrote:
    That's a cool tool Ben!  However, with a bookmark, you know the location on a Word Template, and if you know the location in MS Word, you can then set the fonts you want in Word.
    Do you know how to change the fonts in a string?
    Example, How do you insert this block of text on a SINGLE MS Word bookmark?
    PART NUMBER: 1234567890
    DESCRIPTION:  These lines are formated dynamically, some orders may have 1 PN, and other orders many have 500 PNs.
    I'm formatting my line details and inserting them on a MS Word bookmark.  After the initial bookmark I have no more control of the fonts for the entire string block.  I'd like to dynamically change the fonts in a string and I'd like to use MS Word.  I saw HTML report writing, but, in my particular application, HTML reports will not work.     
    Doug
    I don't have the time to try anything but as a suggestion I would experiment with the range start end properties (e.g. from start =0 to end =
    12 bold is true, from 13 to 23 bold is false, ....) You first insert text without formatting then you use the range start and end to format the text.
    I'm not sure it will work but it's worth a try.
    Ben64
    note: I would create a 2D array of start and end index of your string and auto-index a for loop that contain the range property node.

  • Why does "enclosing folder" not work from the SEARCH window?

    I do a command+F search.
    Command+2 to view as list rather than groups
    and then sort by date modified.
    When I find the file/folder I want I'd really like to do a command+[up arrow] which in the GO menu is a valid command.
    Why does this work in finder windows but not in the search window?
    I'm not using spotlight, just the good old command+F
    This used to work in Sherlock 1 [using command+E] and when you opened the enclosing window, the file was already hi-lighted, faster to locate and saved mousing.

    You'll note that in the Go menu that command is grayed out meaning it's not active in the search results display.
    If you upgrad to Leopard then you can go to the Finder's View menu and select "Show Path Bar." The full path to any selected item in the Finder's window will be displayed in a path bar in the lower portion of the window. You can then double-click on any displayed folder to open a window on that folder.

  • Why do downloaded fonts not work in photoshop elements 10 but work fine in other applications?

    Having trouble with downloaded fonts in adobe photoshop elements 10.  Can anyone suggest how to fix this problem?  The font does not show detail (all filled in black) in elements but is perfectly fine in other applications on my mac. 

    PSE simply uses the system fonts. Have you installed the font in the default location?
    Are you using a small font size on a large resolution image?

  • Why Arial Narrow font not working on my blog?

    I have one blog name http://articlezeneu.blogspot.com/, I have used Arial Narrow font at Post title. On Chrome and IE, it's working but on firefox it shows Arial.
    Can anyone can solve my problem?

    You may have to use extra CSS properties on Windows to make Firefox use the Arial Narrow font: font-stretch:condensed
    When DirectWrite rendering is used rather than GDI rendering, font families are grouped differently.<br />
    How a browser reacts here will depend on which font subsystem it's using.<br />
    Windows has two different font subsystems: GDI and DirectWrite.
    *http://people.mozilla.org/~jdaggett/tests/arialblackweights.html

  • Why do some apps not work with the new ios update

    i tried deleting andstarting over again(e.g : Hay day) but still ! I'm reallllllllly getting sick and tired of this ... Not even to mention how many times the browser(Safari) has stopped working and froze since i started typing this message ....

    you may need to update the particular apps that are causing you crashes. Go to the app store and tap "updates".
    You can also do this via itunes, click on "apps" on the left, then updates on the top and update all. then re-sync your phone.
    Hope this helps!

  • Why does Live View not work with the following: @media only screen and (max-width: 480px)?

    When I use the above media query in my stylesheet Live View ceases to update the viewport.  I have to update it manually each time I add or change a style.  This is not the case when I use styles under a common tablet sized query @media only screen and (max-width: 768px), or when there is no query at all.  Is this a bug or is there something I am missing here? 

    Code errors might account for the discrepancy. Validate your code and fix any reported errors.
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.

  • Why will Macfee Virus not work with the new version? How do I swich back to the previous version that did not have this issue?

    I selected to let Firefox install the update. After the update was done. A message came up and stated the new version of Firefox does not support the add-ons for Macfee virus software. How do I switch back to the previous version, that does support Macfee virus software add-ons? In the mean time I will have to switch back to IE until this is resolved.

    Your Anti-virus application is not disabled, just one silly little McAfee extension for Firefox.
    See McAfee for an updated version of their Firefox extension.

  • Why is spellcheck is not working until the 3rd try - it usd to work fine before the upgrade

    when I click spellcheck to check my email I get an error message
    one or 2 times before it works

    Hey blondgrl53,
    Sorry to hear you're having trouble. From your description sounds like you've got something installed in Safari as a plugin. Whatever this "televisionfanatictoolbar" thing is, you should probably get rid of it.
    In Safari try going to Preferences -> Extensions and seeing if you have any plugins installed that you can disable. That is likely the reason for your problem.
    Another thing you can do is remove your Safari preferences file by doing the following:
    in Finder hit command + shift + g and enter "~/Library/Preferences" with out the quotes.
    Find the file called com.apple.Safari.plist and delete it.  This is completely safe, all it will do is reset your Safari settings.
    If you go to "~/Library/Internet Plug-ins" you can also look in there for anything suspicious and throw it in the trash.
    Hope that helps.

  • Why Does Dynamic Link Not Work

    I purchased the CS5 Adobe Production Premium.  I have been working in Premiere and I have been learning about how to use Dynamic Link. I want to be able to alter clips in After Effects and bring them back and forth into Premiere.  When I go to File/ Adobe Dynamic Link/New After Effect Composition, I get this message:
    Adobe Dynamic Link Requires Adobe Production Premium.
    Since I own production premium, I do not know why I am getting this message.  I have reinstalled the CS5 Production Premium Software twice and it still gives me the same message.  What can I do to get Dynamic Link Working.

    Thank you for the tip.  Could you possibly tell me how to deactivate and
    then reactivate the suite.  I am using a Macbook Pro laptop running OS
    10.6.4.  I do not even know where to start.
    From:   Colin Brougham <[email protected]>
    To:     Dan Seanor <[email protected]>
    Date:   03/15/2011 09:55 AM
    Subject:        Why Does Dynamic Link Not Work
    Deactivate the software (not uninstall), and then reactivate the suite.
    This often fixes this. You can opt to leave the serial number on the
    system; no need to clear it and re-enter it.

  • Nfl mobile not working on the new ipad

    could anyone one tell why nfl mobile is not working on the new ipad with vz data plan

        Brigrat and Kevbraah, I know you want to enjoy NFL Mobile from your iPads! I checked the description on the NFL Mobile app from the AppStore, and unfortunately the new iPad is not supported at this time. This may be updated in the future, but not at this time. I apologize for any inconvenience. Here is the link to the description. http://bit.ly/Po3mah
    See the "Live video and in-game highlight videos are not available on iPads and the new iPad is not supported."
    MarquiaF_VZW
    Follow us on Twitter @VZWSupport

  • Why GWt suggest box is not working in the latest versions of Firefox ? It was working only in Firefox 3 and not other versions. could you please assist in this regards.,

    Why GWt suggest box is not working in the latest versions of Firefox ?
    It was working only in Firefox 3 and not other versions. could you please assist in this regards.,

    jbren wrote:
    I repeatedly have problems with playback on my STB's. Go thru all the motions, inhouse agent, fix multi room dvr problems. Unplug unit, unplug dvr, etc. etc. etc.  The DVR'd show will play on the DVR but not on the STB's. What's up with that?
    Sorry to hear the auto fix suggested early did not fix your problem. So we can get more information from you, I have copied your post to our private support board. Please refer all correspondences to there from here on out. You can easily get to the private support one of two ways. In the email you signed up for the forums with, you will receive a link to click on. Make sure you are already signed into the forums before clicking on this link. Another way of getting there is by clicking on your username anywhere you see it in the forums. This brings you to your account profile. Scroll down to the section labeled "My Support Cases" . In there you will see the link to your case.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • My pc has a virus I just downloaded song from pc to kids ipods now both ipods are not working correctly could the virus be in the ipods,  if not why are both not working doing the same thing right after unplugging from pc.

    Can an ipod get a virus from a pc that has a virus.  After connecting two different ipods to my pc to download music they both are not working correctly, could the virus have transferred to the ipod,  if not why would both ipods not work and be doing the same thing?  When trying to click on a game it just stays on the main screen.

    - I have not heard of a virus that can cause problem with an iDvice that has not been jailbroken.
    - Try resetting the iPods. nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Do you hve problems with one game? The same game on both iPods?
    Other apps?

Maybe you are looking for

  • Error message "VI is not executable"! Need help with Application Builder

    Hello, I have a problem with an application, built with the Application Builder. I have read some threads about the problem I have, but I still don't know a solution. When I run my front panel from LabVIEW, everything is good. So, now I created an ap

  • Need help in abap logic

    I am facing problem in abap program. Requirement : i want to print the data like this delivery no-  item-  from batch-   to batch -   material shade-   no of cones-   netwt-   grosswt-   no of bags. delivery no & item from lips-vbeln  lips-uecha fiel

  • Reminders not working at all in ios 7.

    Every time i open the reminders app since i updated to ios 7,nothing responds.It shows new list and a + next to it in the middle of the screen.It isnt responsive at all.The search works but there is nothing to search for because its not letting me cr

  • Property Problem

    Can you tell me why I am getting an error message in my Nproj.mxml file? This is an mxml/class project. I get the same error #1120: Access of undefined property myProduct. I get it seven times from these seven lines. What is wrong with myProduct? myP

  • Problem bei Diashow mit Photoshop eElements 5.0

    Ich erstellt gerne Diashows mit Photoshop Elements 5.0. Das geht schnell und bietet ausreichend Gestaltungsmöglichkeiten. Toll finde ich, dass ich auch kurze Videos, die ich mit meinem Fotoapparat aufgenommen habe, in die Diashow integrieren kann und