Copy link to clipboard
Copied
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:
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:
[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]
I finally fixed it by recreating the fla file from a Mac.
Looks like it's a Windows-related problem.
Copy link to clipboard
Copied
is that static text?
Copy link to clipboard
Copied
The problem happens with both static and dynamic texts.
Copy link to clipboard
Copied
create a new as3 fla.
add your textfield with arial static text. any problem?
if so, post a link to that fla.
Copy link to clipboard
Copied
No problem with Arial... Looks like it's only a problem I have with a few fonts.
It's very odd:
Top-left: Arial, static
Top-right: Cooper Black, static, from the font list
Middle-left: Cooper Black, static, embedded
Middle-right: Cooper Black, Dynamic (and resized), embedded
Down-left: Source Sans Pro Bold Italic, static, embedded
Down-right: Source Sans Pro Bold Italic, Dynamic (and resized), embedded
Copy link to clipboard
Copied
I finally fixed it by recreating the fla file from a Mac.
Looks like it's a Windows-related problem.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now