Rich Rodecker’s blog on flash, flex, actionscript, javascript, and php, with a dash of randomness
Windows flash player font handling?
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?
| Print article | This entry was posted by rich on May 15, 2007 at 12:20 pm, and is filed under flash. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 3 years ago
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)
about 3 years ago
yeah, found that, but it only returns width and height. we need the other properties (ascent, descent) to manually figure out the baseline.
about 3 years ago
In FP8 you can try some bitmap hacks. Stinky, but maybe can be helpful?
about 3 years ago
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
about 3 years ago
actually..yes. i’m looking at it on both firefox and ie right now, seems ok.