I use a script in InDesign to create some pdf files. Parameters are images, text and other layers.
The script reads a csv and runs. It fits the text in text boxes to optimise the font size depending on the name length.
I would like to modify the script so that text boxes are all the same font size. It means that the font size would be the maximum font size for the longer name to fit its text box. I attach an example of an InDesign file used to