Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Bug with embedded font.

Explorer ,
Mar 08, 2016 Mar 08, 2016

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]

TOPICS
ActionScript
452
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Mar 10, 2016 Mar 10, 2016

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

Looks like it's a Windows-related problem.

Translate
Community Expert ,
Mar 09, 2016 Mar 09, 2016

is that static text?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 09, 2016 Mar 09, 2016

The problem happens with both static and dynamic texts.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 09, 2016 Mar 09, 2016

create a new as3 fla.

add your textfield with arial static text.  any problem?

if so, post a link to that fla.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 09, 2016 Mar 09, 2016

No problem with Arial... Looks like it's only a problem I have with a few fonts.

It's very odd:

Uac1YYf.png

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 10, 2016 Mar 10, 2016
LATEST

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

Looks like it's a Windows-related problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines