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>

Similar Messages

  • Using AS Linkage name for embedded font not working in CS6

    "Myriad Pro" with bold and italic styles embedded with the linkage names "Body", "BodyBold" and "BodyItalic".
    Creating a TextField using Flash CS6's toolbar and setting its font to "Body*" works fine, but not when its htmlText value has <b> and <em>, etc, tags.
    This also does not work:
    style.setStyle(".something", {fontFamily:"BodyBold"});
    ... but this does:
    style.setStyle(".something", {fontFamily:"Myriad Pro Bold"});
    Using the AS Linkage name worked in prior versions. I like using them because I can change global fonts for "stage" elements.

    Justin_WX wrote:
    So on the list it says Arial http://support.apple.com/kb/ht5484 which is a font from Apple, which is different from Microsoft, but are named the same...
    Is there a list of Microsoft Fonts that will work with Pages?
    Are you actually seeing a noticeable difference in the fonts after conversion? While there are some difference between those fonts, they are very subtle differences and in all likelihood will not really change the look of the document.

  • Embedded fonts not working in Air for ios

    hi
    am building an ActionScript mobile project 4.6 for ios and want to use embedded fonts for my app.
    we are using the swf method for embedding the fonts , after loading the xml and even got the embedded resourses from swf , the output is not showing the exact font used , instread it is displaying one of default ios fonts in place of it...
    here is the code of my embedded fonts and we are using TLF for text output:
    ....inside my loaded swf: -
    package
        import flash.display.Sprite;
    import flashx.textLayout.compose.ISWFContext;
    public class Slide1 extends Sprite implements ISWFContext
            [Embed(source="C:/WINDOWS/FONTS/ariblk.TTF", fontName="Arial Black", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+0062,U+006F,U+0064", mimeType="application/x-font")]
            public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
                  if (returns)
                          return fn.apply(thisArg, argsArray);
                  fn.apply(thisArg, argsArray);
    please help asap!
    thanks

    hi
    am building an ActionScript mobile project 4.6 for ios and want to use embedded fonts for my app.
    we are using the swf method for embedding the fonts , after loading the xml and even got the embedded resourses from swf , the output is not showing the exact font used , instread it is displaying one of default ios fonts in place of it...
    here is the code of my embedded fonts and we are using TLF for text output:
    ....inside my loaded swf: -
    package
        import flash.display.Sprite;
    import flashx.textLayout.compose.ISWFContext;
    public class Slide1 extends Sprite implements ISWFContext
            [Embed(source="C:/WINDOWS/FONTS/ariblk.TTF", fontName="Arial Black", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+0062,U+006F,U+0064", mimeType="application/x-font")]
            public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
                  if (returns)
                          return fn.apply(thisArg, argsArray);
                  fn.apply(thisArg, argsArray);
    please help asap!
    thanks

  • Embedded fonts not working

    embedded fonts aren't working for me in TextFlow. The non-embedded/pre-included fonts are working fine but if i try to add my own font, it doesn't work.
    i have the font set to DF4 and i have it exported for ActionScript with a class name.
    the font i'm using specificaly is Kozuka Gothic Pro L, which is OpenType.
    any ideas what's wrong here?
    if you need me to provide any more data pls let me know.

    pertinent as code:
              private function startLoadingXML():void {     
                   titleLdr = new URLLoader();
                   titleLdr.addEventListener(Event.COMPLETE, loadComplete);
                   titleLdr.addEventListener(IOErrorEvent.IO_ERROR, loadError);
                   titleContent = new String();
                   titleContainer = new Sprite();
                   this.addChild(titleContainer);
                   titleContainer.x = 40;
                   titleContainer.y = 837;
                   titleFlow = new TextFlow();
                   titleLdr.load(new URLRequest("XML/titleLdr.txt"));
                   titleTxtOutput.text="Loading an external file...";
                   trace("Loading an external file...");
              public function loadComplete(e:Event):void {
                   titleContent = titleLdr.data;
                   titleTxtOutput.text="An external text file, markup.txt, was loaded.";
                   trace("An external text file, markup.txt, was loaded.");
                   titleLdr.removeEventListener(Event.COMPLETE, loadComplete);
                          titleLdr.removeEventListener(IOErrorEvent.IO_ERROR, loadError);
                   placeIconTitle();
              function loadError(e:IOErrorEvent):void {
                   titleTxtOutput.text = "Error loading an external file.";
                   trace("Error loading an external file.");
              private function placeIconTitle():void {
                   titleFlow = TextConverter.importToFlow(titleContent, TextConverter.TEXT_LAYOUT_FORMAT);
                   titleFlow.flowComposer.addController(new ContainerController(titleContainer, 400, 400));
                   titleFlow.flowComposer.updateAllControllers();
                   //titleFlow.fontLookup = FontLookup.EMBEDDED_CFF;
    which leads to the text:
    <TextFlow color="#FFFFFF" columnCount="0" columnGap="0" columnWidth="0" fontFamily="Meiryo" fontSize="14" lineBreak="toFit" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" paragraphSpaceAfter="0" paragraphSpaceBefore="0" verticalAlign="top" whiteSpaceCollapse="preserve" textAlpha="1" xmlns="http://ns.adobe.com/textLayout/2008">
         <p color="#FFFFFF" fontSize="18" trackingRight="2" fontWeight="normal">
              <span>subTitle</span>
         </p>
         <p fontSize="40" fontFamily="Kozuka" textAlpha=".2" baselineShift="85">
              <span fontWeight="bold">main</span><span fontWeight="normal">title</span>
         </p>
    </TextFlow>

  • CSS embedded fonts not working in Windows

    I'm using the css @font-face embed method for an HTML based air app. The fonts work great on a mac, but not at all in Windows.
    This is an example of the css:
    @font-face { font-family: "Helvetica Neue Condensed Bold"; src: url("app:/public/fonts/HelveticaNeueCondensedBold.ttf"); }
    I've tried converting the file to different formats and using different url paths.
    I've set the body font family to Times, and the embed must be doing something since all the fonts are sans-serif. The font that's being rendered is the same as if there's a bad url, but I've tried everything I can think of there. Page relative (../fonts/), root relative (/public/fonts/), and fully qualified (app:/public/fonts/). Is there something I'm missing??

    Hi,
    Please run the following tool to re-install the software:
       http://ftp.hp.com/pub/softlib/software12/COL50403/mp-122330-1/hppiw.exe
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • 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?

  • Title & Menu Buttons not working correctly on remote control/ set top player but work in preview.

    Title & Menu Buttons not working correctly on remote control/ set top player but work in encore preview. This only happens for a Blu ray project. When a user presses the menu button it should go to the previous menu they were on but it goes to the main menu. When they press the title button they should go to the main menu but it doesn't do anything. My DVD projects work as expected.I've tried creating a new "test" project with different footage and still get the same undesirable results.
    Overrides grayed out and set to "not set" for timelines and menus.Project settings and build are set to blu ray. Also I've noticed when I preview a Bluray project the preview window shows a red colored disc next to the Title button when viewing the timelines and green when playing the menus but not so for a DVD project it displays red if motion menus and or timelines are not rendered/encoded. I'm not using motion menus and all the media is encoded according to the project specs.
    I've searched this forum but couldn't find the answer. Any help or redirects to a solution would be appreciated. Working with CS5. Thanks.

    I found out on my Samsung Blu ray player the remote has a tools button on it that brings up audio, angle, chapter selection etc.and also title selection which is actually the menus and the timelines unfortunately. It's not as easy or direct as last menu selected but it's a workaround at least. I also plan on using a pop up menu. I'll let you know.

  • 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

  • [svn:fx-trunk] 5019: ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/ AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spa

    Revision: 5019
    Author: [email protected]
    Date: 2009-02-19 13:17:21 -0800 (Thu, 19 Feb 2009)
    Log Message:
    ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spark equivs
    QE Notes: None
    Doc Notes: None
    Bugs: -
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

  • Oc4jadmin not working for application server control in SOA suite 10.1.3.1.

    Hi,
    We have installed the SOA suite, and I can login to the various components using oc4jadmin/password (bpel, esb, rules author), but for some reason that oc4jadmin password is not working for Application Server Control, which is the only piece of this I really need to log in to.
    Any thoughts on what is going wrong?
    Cheers,
    Pat Rock

    Maybe you change this password internally for another application (such BPEL, WSM,etc) and didn't make change for your main OC4J container.
    You can try to change this password by...
    1. Open the file [OASHome]\j2ee\home\config\system-jazn-data.xml
    2. Find the section that looks like this
    [user]
    [name]oc4jadmin[name]
    [display-name]OC4J Administrator[display-name]
    [guid]88836370D11611DC9F30F9C1CD6F1A73[guid]
    [description]OC4J Administrator[description]
    [credentials]{903}F+iG1A46edXG9RdfY0pD2O4Ge/qyEjsg[credentials]
    [user]
    3. Replace the value separated by the "Credentials" starting and ending tags with your new desired password, prefixed with an exclamation point
    Example:
    [user]
    [name]oc4jadmin[name]
    [display-name]OC4J Administrator[display-name]
    [guid]88836370D11611DC9F30F9C1CD6F1A73[guid]
    [description]OC4J Administrator[description]
    [credentials]!newpassword[credentials]
    [user]
    4. Save the file and restart OAS
    This should not affect other applications.
    Greetings.

  • 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";     

  • 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!

  • Embedded Fonts, how to use in all controls?

    When I embed either external fonts or system fonts they work
    great for say the label control but not for others such as the
    progressBar, on top of this any control that wont use an embedded
    font cant be used in conjunction with an alpha related effect as
    the font will be 100% alpha the entire time. Whats the deal with
    some controls not using the specified embedded font?

    Hi again....
    I must ask again..because I dont think I understand completly how to get speedfan to work in my other profil...( User).
    I installed speed fan as admin and configured it proper according to this forum.....
    It seems to work just fine.......
    Before I logout and switch user I make sure that speedfan is not running and that there is nothing in its autostart.
    I then logout and switch to the other profil.......there I put an speedfan-ikon on its desk....
    When I try to launch speedfan in this profil I get a warning:
    UNABLE TO SAVE TO  C:\program\speedfan\speedfanparams.cfg
    It seems that I only can run speedfan as admin......
    Am sorry to bother u guys again...but u seem to be wise in this matter.....
    I want to be able to run the computer in this other profil, not in admin.
    In this other profil I would like to have speedfan running and showing me the temps of the computer.....
    As I understand its the most secure way to run computers......
    Best regards
    Mr W

  • 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

  • Can't get embedded font to work on Button

    I'm trying to use an embedded font in order to fade Panels as
    well as the text in the Panels. I have the following code to set up
    the embedding (using Edwardian Script so I can be sure the font
    worked):
    <mx:Style>
    @font-face {
    src:url("C:/WINDOWS/Fonts/ITCEDSCR.TTF");
    fontFamily:myScript;
    .scriptStyle {
    fontFamily:myScript;
    </mx:Style>
    This works fine when I apply this style to Labels using the
    styleName property, but when using it on a Button, I get a really
    fuzzy/ugly text, as though the font didn't work and some bad
    default were used, that didn't scale to the small size very well.
    I've also tried directly setting fontFamily directly on the
    Button control, rather than using the intermediary style
    (scriptStyle).
    Is there some restriction about using embedded fonts on
    Buttons?

    Hi,
    I was just looking for answers to my own question when I
    noticed this, which was giving me a problem earlier this week. I
    found that the default text for a button is 'bold' so if you
    haven't specified a bold embedded font, then it won't look good. I
    just got around it by specifying a 'normal' fontweight for my
    buttons.
    I would imagine that, after all this time, you've probably
    found the answer, but thought it might help anyone else who is a
    couple of weeks behind me on the learning curve ...

Maybe you are looking for