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

Dynamic text bug?

Community Beginner ,
Feb 21, 2017 Feb 21, 2017

Very odd behavior when changing dynamic text. Try this:

1. New AS3 file.

2. Create a dynamic text field on the Stage, give it instance name "text1", and write "Hello" in it. Leave plenty of space to the right for more text.

3. Put an Action on the Stage timeline, frame 1:

     text1.text = "Hello world";

Test movie: result is "Hellool"

Font embedding warning. Don't embed right now. Change font to "_sans" and run again: result = "Hello World", as expected. Change back to original font (that was never embedded): result = "Hello World". Try any other font: now they all work...

What is going on? Is Animate auto-embedding the fonts somehow? If you do embed the font at the first warning (and check the Character Glyphs you want, which I missed a few times haha), then everything works, and that makes sense---it didn't have the proper character sets to render the changed text, only the letters you used in the original text (maybe?). BUT that doesn't explain why after you run it once with _sans, all the other fonts will now work WITHOUT embedding.

Any thoughts on this? Was a rather nasty issue that's cost a good hour of fiddling...

1.2K
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 ,
Feb 21, 2017 Feb 21, 2017

you need to embed your font.  otherwise, only the characters in the textfield (helowrd) are 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
Community Beginner ,
Feb 21, 2017 Feb 21, 2017

I understand that, but that doesn't answer the question about switching to _sans and then back to any other font (that you have NOT yet embedded) will now work. Seems like a bug to me, because those other fonts will NOT work at first. Why would switching to _sans and back suddenly make it work? Makes no sense...

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 ,
Feb 22, 2017 Feb 22, 2017

your tf's anti-alias property probably changed when you changed the font from whatever to _sans and then when you returned to whatever it remained at use device fonts..

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 Beginner ,
Feb 24, 2017 Feb 24, 2017

Hmm, I tried it and watched the anti-alias property, and it remained at "Anti-alias for readability" upon switching back to the original font. Then it started working with whatever font, even after restarting Animate, and using fonts I hadn't tried before...so I'm still totally lost. Really seems like it's auto-embedding the fonts somehow. Which is totally fine with me, I would rather it did that anyway...but that's not how it's supposed to work, I thought.

I guess it's not a big deal---just embed fonts to be sure---but it sure seems like a bug, given that I could reproduce the behavior at first, and now the same behavior is doing something different...?

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
Adobe Employee ,
Feb 27, 2017 Feb 27, 2017

If you are confident that this is a bug, I suggest reporting it to the team using Feature Request/Bug Report Form

Thanks,

Preran

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
New Here ,
Jun 25, 2017 Jun 25, 2017
LATEST

I solved a problem of this type by switching the anti alias readability option to use device fonts.

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