Skip to main content
Participant
March 4, 2023
Question

Set Dynamic Text Font size to px instead of pt?

  • March 4, 2023
  • 3 replies
  • 1595 views

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.

This topic has been closed for replies.

3 replies

Mario_CR
Community Expert
Community Expert
March 4, 2023

There are also online tools to translate px to pt:

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

kglad
Community Expert
Community Expert
March 4, 2023

you can assign pixels (using easeljs) if using an html5/canvas project, https://createjs.com/docs/easeljs/classes/Text.html#property_font

JoãoCésar17023019
Community Expert
Community Expert
March 4, 2023

Hi.

 

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

Please let us know.

 

Regards,

JC

Participant
March 4, 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? 

JoãoCésar17023019
Community Expert
Community Expert
March 4, 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.