Skip to main content
May 24, 2011
Question

Flex 4.5 from Hero - made the CFF fonts thicker

  • May 24, 2011
  • 3 replies
  • 4366 views

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.

This topic has been closed for replies.

3 replies

June 10, 2011

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 ?

Participant
October 28, 2011

There is really no resolution for this?

Participating Frequently
October 31, 2011

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.

Participant
June 2, 2011

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.

Participating Frequently
June 3, 2011

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

Participant
June 3, 2011

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.

Participating Frequently
May 25, 2011

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/flashx/textLayout/compose/ISWFContext.html

And make sure you are using the embedded font correctly.

Thanks

May 25, 2011

Well, I was surprised as well. TLF has nothing to do with the rendering.

Flash player cannot make the difference, because we had an online version of the site which is still running and that still remains the same.

How I embedd the font is the classical way. I have a swf, its main class extends Font class. I load the font swf to the root swf and that's it.

I will try the example you sent me.