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

Set Dynamic Text Font size to px instead of pt?

New Here ,
Mar 04, 2023 Mar 04, 2023

Greetings. 

I'm trying to create an Animate project to match a client-provided photoshop template. 

I am having difficulting matching the font size of the dynamic text that will need to be in the project, as the font setting in Animate is stuck on pt, which as far as I can tell is a completely meaningless and arbitrary unit. Setting the photoshop template to give the font in point and using that number results in a dynamic text box that is clearly much, much smaller than desired. The fact that the photoshop template shows a different number for the fontsize when I switch it between pt and px trivially disproves the rants that make up most of my results on this support community when I search for this subject.

I have already attempted setting the document settings to pixels; however, the font size in the dynamicText box does not seem to care about that. Neither does it respond to me manually typing px within it. 

Any solution to fixing the setting, or a detailed explanation as to how to translate the points from one project into the points of another would be greatly appreciated. Surely there must be a small fundemental unit of some sort underlying the entire process, and I would love to know what it is.

TOPICS
How to , Other
1.5K
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 04, 2023 Mar 04, 2023

Hi.

 

Do you get the correct font sizes if you import the PSD into Animate?

Please let us know.

 

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
New Here ,
Mar 04, 2023 Mar 04, 2023

I hadn't even considdered the option of importing the PSD directly to Animate. Doing so did give me editable textfields of the correct size; however, the font size number on these clearly do not even remotely match the number I need for the in progress recreation. This new project is saying one element is 60pt where when I attempt to eyeball a match on the other I'm estimating somewhere around 36pt is what I need. There is a sizable amount of other stuff in this project that dissuades me from wanting to move to this new imported version- In part some of the text didn't import with the same casing as the psd has when rendered in photoshop. 

Would you happen to know where I would go to check whatever setting determins the pt size in this new 640x385 pixel project so that I can set it to match the old 640x385 pixel project? 

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 04, 2023 Mar 04, 2023

I'm not sure if I get what you want, but Animate only uses pt as the unit for font size. Even if you go to Document > Modify (Ctrt/Cmd + J) and change the unit, fonts will continue to be measured in points.

 

I think you will have to calculate the ratio between pt and px for the font that you're using.

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 04, 2023 Mar 04, 2023

you can assign pixels (using easeljs) if using an html5/canvas project, https://createjs.com/docs/easeljs/classes/Text.html#property_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 ,
Mar 04, 2023 Mar 04, 2023
LATEST

There are also online tools to translate px to pt:

https://pixelsconverter.com/px-to-pt

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