Skip navigation
Currently Being Moderated

Flex 4.5 from Hero - made the CFF fonts thicker

May 24, 2011 12:11 PM

Today, I started to use Flash Builder 4.5 with the new 4.5 sdk. Before that, I used Flex Hero. After compiling my web application I realized that the fonts got thicker, just a bit thicker. I use the TLF which is originally embedded into the sdk.

 

I use cff embedded fonts. By the way it is helvetica. Any idea?

I am 100% sure that some change happened in TLF, because the fonts are stored in different swfs which were compiled a few month earlier.

 

And I am also having a strange issue with TLF when I am having EditManager. Look at the "benjaminbalazsisverystrange" text please.

http://benji.hu/temp/tlf.png

The fonts were purchased from LinoType, so the file must be okay.

 
Replies
  • Currently Being Moderated
    May 24, 2011 8:44 PM   in reply to BenjaminBalazs

    Hi:

     

    Basically, TLF is text layout framework. It is focus on the layout business. That means TLF is not directly resposible for the font redering things. That's something flash player is resposible to do.

     

    If you only updated the TLF, that should not make the font redering things to be different. You should check if you used different flash player.

     

    Please refer to the following document's example:

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla shx/textLayout/compose/ISWFContext.html

     

    And make sure you are using the embedded font correctly.

     

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 1, 2011 10:48 PM   in reply to BenjaminBalazs

    The output you get with the same SWF will vary depending on what version of Flash Player you are using. It is also possible that it might vary depending on what version of Flash Builder is used to embed the font. But I would guess there would be more changes that are Player dependent than changes that are Flash Builder dependent. It should be possible to see this by opening the same SWF on older and newer versions of Flash Player, and contrasting this with compiling a SWF on an older and new version of Flash Builder, and then opening it on the same Player. I know there were a lot improvements that went into the latest Player in text rendering.

     

    - robin

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 2, 2011 1:20 PM   in reply to BenjaminBalazs

    We also noticed that the fonts look different too, just switching back to 19786 instead of 20967 will make the font thinner again. It's not related to the flash player as far as we can tell. There are other issues with font rendering in 20967 that we don't see in 19786 too (text disappearing and hangs related to the TLF code).

     

    We don't set the rendering mode or font lookup anywhere.

     

    One thing though is that 20967 compiles to swfVersion 11 whereas 19786 doesn't. Perhaps that change caused the flash player to render text differently? Passing in swfVersion 10 to 20967 just yield a blank application for us FYI.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 2, 2011 7:39 PM   in reply to Clement.Pang

    I just tried the thing you mentioned in the post on flash player 10.2 with our snapshot system. No differences were found. Can you provide your detail platform information and code scrapts so that we can reproduce your issue?

     

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 2, 2011 11:58 PM   in reply to Gang Cai

    I can reproduce the difference by switching the swfVersion flag passed to mxmlc between version 10 and 11 with SDK 19786 (10 produce thinner fonts and 11 produces thicker ones). It seems me that you need swfVersion 11 with SDK 20967.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 3, 2011 12:32 AM   in reply to Clement.Pang

    I think this is something Robin mentioned in the above reply. Changing FlashBuilder(SDK) or Flash Player may cause the Font rendering to be different.

     

    TLF is not directly resposible for the font redering things. Our changes will not cause the Font rendering to be different...

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 12:35 AM   in reply to BenjaminBalazs

    Hi:


    I don't think the implementation of:


         _controller.fontLookup = FontLookup.EMBEDDED_CFF;


         _controller.renderingMode = RenderingMode.CFF;


    will point to the real embedded font format.


    Remember, the every element in TLF has two kinds of formats: Format and Computed format.

    The Element's Format is describing formats set on this element.  May be null.

    And the Computed Format is describing the result of the inheritance cascade. What is really set.

         •computedFormat is never null
         •Every built-in property will have some value
    In the fontLookup properties' case, the real computed format should be desided by the flow element's format and their inheritance cascade. The controller's fontLookup will not affect the element's fontLookup computed format. That means the controller case in your code will point to "device" font rather than embedded one if you don't set  the elment's fontLookup property.
    Thanks
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 10, 2011 3:21 AM   in reply to BenjaminBalazs

    Hi nice people,

     

    I'm sorry but forced to second the initial remark: yesterday, i switched from the Flash Builder Hero release to the official 4.5 and my fonts are now thickier (as you can see below). Any ideas ?

     

    thickfont2.pngthickfont1.png

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 28, 2011 1:33 PM   in reply to alimbourg

    There is really no resolution for this?

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 30, 2011 8:19 PM   in reply to jmbarrus

    Hi:

     

    Based on our test, the embedded font works fine on TLF. Please make sure you are really using embedded font. One tip for this, please make sure your computed format really refer to the embedded font.

     

    Another thing I wanted to mention is that the output you get with the same SWF will vary depending on what version of Flash Player you are using. TLF is text layout framework. We really do not response for the font redering business. We only response for the layout business. If you found the embedded font did not work as you expected, please post the issues on the player's forum. The really redering business is done by FTE(Flash Text Engine) which is in the flash player.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points