Skip to main content
Inspiring
March 8, 2016
Answered

Bug with embedded font.

  • March 8, 2016
  • 2 replies
  • 505 views

Hello,


I have a strange bug with the Cooper font (Std Black Italic)...

Here's what a multiline text looks like in the Flash editor:

mlVXh7W.png

Now here's how it looks like when I embed the font in a SWF file, then load it and use it from the AS3 code:

hXbpJ3S.png

[what] is happening?!

Here are the line metrics values I get from getLineMetrics(0):

ascent : 51.2

descent : 51.2

height : 102.4

leading : 0


I tried reexporting the font, same problem. I also have the same problem when I export the scene from the editor and play it with Ctrl+Enter.

It ONLY looks good in the editor... I don't know what to do. I even reinstalled the font. 😕😕

Also, I have this problem with all the fonts... or at least all of the 5 different fonts I have tried.


[moderated]

This topic has been closed for replies.
Correct answer MickaelKicker

I finally fixed it by recreating the fla file from a Mac.

Looks like it's a Windows-related problem.

2 replies

MickaelKickerAuthorCorrect answer
Inspiring
March 10, 2016

I finally fixed it by recreating the fla file from a Mac.

Looks like it's a Windows-related problem.

kglad
Community Expert
Community Expert
March 9, 2016

is that static text?

Inspiring
March 9, 2016

The problem happens with both static and dynamic texts.

kglad
Community Expert
Community Expert
March 9, 2016

create a new as3 fla.

add your textfield with arial static text.  any problem?

if so, post a link to that fla.