Skip to Content

Text auto scale

This script will automatically scale the text when used in a dynamically or statically parametrized text layer. The script will scale the text to fit the sizes of the original text layer.

Text scaling is performed around the Anchor Point of the text layer. Knowing that, you should position the anchor point of the text layer in the place where you want the text to be scaled from. For example, if you want the text to be scaled from the center, you should position the anchor point in the center of the text layer, or if you want the text to be left aligned, you should position the anchor point in the top-left corner of the text layer, so this way, text layer will keep the original position, and only the size will be changed.

Text auto scale anchor point middle

Text auto scale anchor point left

To use this script, either check the box next to Auto scale text when applying parametrization to the text layer, or add the script manually to the layer by navigating to the Scripting tab, and selecting the Auto scale text script.

To learn more about how text auto-scaling works and how it’s implemented in your project, check the Text scaling section.