Skip to Content »

FlashApe » Windows flash player font handling?

 Windows flash player font handling?

  • May 15th, 2007
  • 12:20 pm

Anyone have any idea about this? We are having issues where it appears that the windows version of the flash player is not using the embedded version of a font if that font is already installed on the computer. Does anyone know if this is actually the case?

We are also using getTextExtent() to find the baseline of the font to send that info to a java backend. I think there might be an issue here as well.

*Update: as far as we can tell, t’s an issue with getTextExtent using the font installed on the system rather than the embedded font. wtf?

5 People had this to say...

Gravatar

AFAIR getTextExtent is/was pretty buggy, for more see mx.core.ext.UIObjectExtensions (AS2.0), lines begins with:

// add a better text measuring method to TextFormat.
// the current one is broken in Flash
TextFormat.prototype.getTextExtent2 = function(s)

Gravatar
  • rich
  • May 15th, 2007
  • 6:05 pm

yeah, found that, but it only returns width and height. we need the other properties (ascent, descent) to manually figure out the baseline.

Gravatar

In FP8 you can try some bitmap hacks. Stinky, but maybe can be helpful?

Gravatar
  • Jensa
  • May 16th, 2007
  • 12:42 pm

Speaking of fonts - have you seen this blog on a PC? There’s something really odd with the font you’re using. It’s almost not possible to read any of the text and it’s really jagged.

J

Gravatar
  • rich
  • May 17th, 2007
  • 9:12 am

actually..yes. i’m looking at it on both firefox and ie right now, seems ok.

Want your say?

* Required fields. Your e-mail address will not be published on this site


You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>