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

Problem with a dynamic text field and a webfont

New Here ,
Apr 10, 2019 Apr 10, 2019

I've got a dynamic text field that I need to use to display a javascript-generated current time (24H format, hh:mm:ss) - with a custom .woff webfont. I've got the font thing working by modifying the Animate-generated code, but when I display the page in a browser, the time moves because of the different size letters.

Here's a video displaying the problem:

animate clock problem - YouTube

What do I need to change, either in the code or in Animate to get this right?

Also - another issue: in browsers other than Firefox (Chrome, Safari), the text field briefly flashes a generic serif-like font. What I do I need to do to get rid of it?

706
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

Community Expert , Apr 10, 2019 Apr 10, 2019

Hi.

You can also align your text field to the left.

About the flashing, this is an issue regarding to webfonts in general, not only to Animate CC.

Web Font Optimization  |  Web Fundamentals  |  Google Developers

https://medium.com/@ngubanethabo.ambrose/prevent-text-font-flickering-caused-by-using-a-custom-font-family-983c4b8d548d

Regards,

JC

Translate
Community Expert ,
Apr 10, 2019 Apr 10, 2019

It is likely because you are not using a monospace font?

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 ,
Apr 10, 2019 Apr 10, 2019
LATEST

Hi.

You can also align your text field to the left.

About the flashing, this is an issue regarding to webfonts in general, not only to Animate CC.

Web Font Optimization  |  Web Fundamentals  |  Google Developers

https://medium.com/@ngubanethabo.ambrose/prevent-text-font-flickering-caused-by-using-a-custom-font-...

Regards,

JC

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