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?

Similar Messages

  • Embedded TTF font not working

    Hi everybody.
    In the first place, thank you. In the other hand, sorry for all my possible English mistakes.
    I have made several ePubs (validated in epubcheck and FlightCrew) with embedded fonts and all of them have always worked fine in ADE 1.7.2.
    However, the same ePubs in ADE 1.8. preview are failing. I don`t know why, but the text with the embedded font is not being displayed at all. 
    What has been changed that I'm missing it?

    This problem has been solved in the new preview version.
    Thanks!

  • 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

  • Intelligent barcode font not working in Data Merge?

    Intelligent barcode font not working in Data Merge?
    When using Data Merge I only get a pink box where the code is supposed to go. If I cut and paste the same info into the spot the bar works fine. Anybody ever have this problem?

    It looks like you're working with InDesign, correct? I would try posting your question over in the general InDesign forum: http://forums.adobe.com/community/indesign The folks over there will be able to provide you with more specialized expert help

  • Embedded Youtube videos not working on Chrome 23 / Flash player 11.5.31.2

    For the past couple of weeks, I've not been able to play any Youtube videos that appear as embedded videos on other websites.  The small player appears with the still frame from the video and all the controls, but on pressing play, the video goes blank and won't play (the slider stays stuck at 0:00).  Nor does the full screen button work - the player just stays where it is within the third party website.  This problem has occurred across more than one website, but all sites still work in Internet Explorer.
    The main Youtube site is still working.
    I have tried all relevant steps here, to no avail (except increasing memory for a particular website, since not just one website is affected):
    http://helpx.adobe.com/flash-player/kb/flash-player-games-video-or.html
    Details:
    Windows 7 Home Premium 32-bit
    Google Chrome 23.0.1271.64 m
    Flash Player 11,5,31,2
    Any suggestions please?
    John

    Thank your for your reply, Chris.
    I installed the newest version of Chrome, and the videos I have
    embedded on my blog are now working.
    Regards,
    Frank
    2012/11/30, Chris Campbell <[email protected]>:
    Chris Campbell http://forums.adobe.com/people/chris.campbell created the
    discussion
    "Re: Embedded Youtube videos not working on Chrome 23 / Flash player
    11.5.31.2"
    To view the discussion, visit:
    http://forums.adobe.com/message/4885375#4885375

  • I am on windows 7 and I upgraded to 10.0.2 and now it will not open. I have removed firefox completely and uploaded it again and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version and once again nothing.

    I am on windows 7 and I upgraded to the newest verison of firefox and now it will not open. I have removed firefox completely and uploaded it again and that did not work. I then made sure it could get through my firewall and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version hoping that would do it and once again nothing. It will not open at all. Please help - is there a live chat or a number to talk to someone at Firefox?

    I think when uninstalling you may also have to choose (tick) to delete the preferences and other personal data like the bookmarks, stored passwords etc. to erase completely. If you are installing afresh, please try right-clicking on the file and '''Run as administrator''' to install. And when uninstalling, please also make sure choose to delete all data and also manually delete any '''Mozilla''', '''Mozilla Firefox''' or '''Firefox''' from %appdata%, %localappdata% and %programfiles%. You can open a location by typing for eg. %appdata% in the '''Run''' box (Windows key + R). You may also have to check the '''VirtualStore''' folder in %localappdata%. Files in the VirtualStore can be problematic. I think a clean installation may help.
    [https://www.mozilla.org/en-US/firefox/new/ Firefox]
    [http://kb.mozillazine.org/Installation_directory Installation Folder]
    [http://kb.mozillazine.org/Profile_folder Profile Folder]
    Please note that using system restore would usually damage the Firefox installation.

  • To whom it may concern      Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E  2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in goo

    To whom it may concern
    Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E
    2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in good shape I can prove it,the Apple support in Brazil doenst work like in USA.
    I look forward to your reply and a resolution of this problem.
    Thank you very much!!!

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • My iphone 4's display is completely blackout and even its battery is not charging. I tried to restart my iPhone by pressing home and on/off button but it is also not worked. Now I'm in Nepal and here not even a single apple service center. What to do? Ple

    Its been one month, my iphone 4's display is completely blackout and even its battery is not charging. I tried to restart my iPhone by pressing home and on/off button but it is also not worked. Now I'm in Nepal and here not even a single apple service center. What to do? Please help me.

    You clearly did not notice that you have joined a USER TO USER COMMUNITY FORUM
    This is NOT Apple ,Apple do not read nor do they  therefore respond
    So if you would like to wind your neck in ........................
    try a reset of iPhone and then a restore,best, as new and if it then functions correctly try restoring with your backup

  • I have a problem with my MacBook Pro is the almost of my app not working at all like a app store and terminal and other important apps please if u can help me as fast as you can cuz i don't wanna format it that's why am on Mac now not win ?

    i have a problem with my MacBook Pro is the almost of my app not working at all like a app store and terminal and other important apps please if u can help me as fast as you can cuz i don't wanna format it that's why am on Mac now not win ?

    Abdussalam.A,
    you mentioned that Terminal does not work at all for your MacBook Pro. What currently happens when you run Terminal? In what way does it not work?

  • The search function in the itunes store does not work.  It will accept a request and suggest searches but then it locks up and will not search.  Clicking on the magnifying glass or a suggested search does nothing.  Re-installing itunes has not helped.

    The search function in the itunes store does not work.  It will accept a request and suggest searches but then it locks up and will not search.  Clicking on the magnifying glass or a suggested search does nothing.  Re-installing itunes has not helped.

    everything you stated here is exactly what i have done and have got nowhere. i have windows 7 64 bit on a hp 8 g of ram desktop. im also looking for help

  • I just got a new laptop and itunes is not working I have tryed to reinstall it and do alomst everything and it's still not working. Help?

    I just got a new laptop and itunes is not working I have tryed to reinstall it and do alomst everything and it's still not working. Help?

    What do you mean "not working"?  That could mean multiple different things.
    If help is desired, be as specific as possible.

  • I have CS5 and a d-600. I would like to use camera raw but not working. I downloaded CR 7.3 and still not working. Do I need to upgrade to CS6 ..or just throw it all out the window and get rid of my d-600 ?

    I have CS5 and a d-600. I would like to use camera raw but not working. I downloaded CR 7.3 and still not working. Do I need to upgrade to CS6 ..or just throw it all out the window and get rid of my d-600 ?

    it allows you to use your cr files, Adobe - Adobe Camera Raw and DNG Converter : For Windows
    Camera Raw: How to use Adobe DNG Converter - YouTube

  • Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Hi connally25,
    Below is a link to a video tutorial on how to add a Facebook Log button, please check if you have followed the same steps to add the video.
    http://tv.adobe.com/watch/learn-adobe-muse-cc/adding-a-facebook-like-button/
    If you have followed the steps correctly and the button still does not work; here is a link to a forum thread which might help solving the issue:
    Facebook Follow Widget not working
    Regards
    Sonam

  • HT4623 My iPhone is locked with the connect to iTunes logo on screen. I have connected and trying to restore but it is not working. I have turned it on and off but to no avail.

    This has happened doing the latest software update. I think I accidentally deleted iTunes before doing the latest update in trying to make room on the phone when it came up with limited space.
    My iPhone is locked with the connect to iTunes logo on screen. I have connected and trying to restore but it is not working. I have turned it on and off but to no avail.
    The restore says two hours to down load. Has anyone else had this problem.

    iOS: Unable to update or restore

  • I am having trouble printing a PDF document. Whenever I click print nothing happens but when I am printing documents from Word, Excel etc they print without a problem. I've tried printing as image but that did not work. I uninstalled Adobe Reader XI and d

    I am having trouble printing a PDF document. Whenever I click print nothing happens but when I am printing documents from Word, Excel etc they print without a problem. I've tried printing as image but that did not work. I uninstalled Adobe Reader XI and downloaded Adobe Reader X instead and that still doesn't work. I have Windows 7.

    Hello,
    Please follow the link to troubleshoot the printing issues with Adobe Reader:- Troubleshoot PDF printing | Acrobat, Reader.
    Regards,
    Nakul

Maybe you are looking for