Skip navigation
Currently Being Moderated

TextFlow and Modesto font incorrect rendering...

Aug 16, 2012 4:10 PM

Tags: #flash #textlayout #text_flow #font_spacing

Hi,

I have a project using TextFlow with StyledRichText that calculates positioning / scaling based on font metrics in font files that have been embedded into loaded CSS SWF.

 

All works well apart from one specific font. Opening the font in Fontographer or similar shows the glyphs extend beyond the expected region and this shows on screen as the letters extending beyond the bounds of the text field... Or, rather... _mostly_ displaying beyond the bounds of the text field. Occasionally, the bits outside get chopped off and occasionally the TextFlow decides it only has room for one rather than two lines and...

 

Well, it sucks, basically.

 

As you zoom in and out, the text rendering switches so that sometimes I am looking at two lines and others at one.

 

Needless to say, dumping the font entirely would be preferable, but that isn't possible for visual design reasons that I am not qualified to comment on.

 

So...

 

Does anybody have any ideas how I can detect, react to and / or correct for the weird font metrics in this specific font? (I should add, the fix has to be compatible with the somewhere around 150 fonts that _do_ work.)


Cheers,

G

 

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