Posted: Sat Dec 27, 2014 4:54 am Post subject: Dynamic Font Size to fit within Box
Hello,
I hope someone is reading this and has an answer to my problem.
What i want to do:
I have over 300 names (with surnames) listed as a textfile. And i have one image. What i want to do is pasting the text (e.g. name1surname1) on a specific area (which does not change) of the image, and saving the image as jpeg (filename = name1surname1.jpg). Then name2surname2 > saving as name2surname2.jpg, ....
The image is always the same, but the text i have to change (and save-as-jpeg) over 300 times.
What my problem is:
I don't have the time to change all 300 names one by one and saving them one by one.
> Using Actions does not solve my problem ofcourse because it is different everytime
> Using Variables (set to the textlayer) and importing datasets COULD solve my problem but:
>> Sometimes one 'name' is longer than the previous one, so it does not fit inside the box:
http://fs1.directupload.net/images/141227/khv5ija4.jpg
What could solve my problem:
A way, which automates all the replacing of the textlayer with the names AND (probably more important) automatically changing the fontsize in case it is too big to fit within the textbox.
I hope there is a way to this. Waiting hopefully for answers thanks in advance!
Posted: Wed Dec 31, 2014 12:03 am Post subject: Re: Dynamic Font Size to fit within Box
katakulli wrote:
Hello,
I hope someone is reading this and has an answer to my problem.
What i want to do:
I have over 300 names (with surnames) listed as a textfile. And i have one image. What i want to do is pasting the text (e.g. name1surname1) on a specific area (which does not change) of the image, and saving the image as jpeg (filename = name1surname1.jpg). Then name2surname2 > saving as name2surname2.jpg, ....
The image is always the same, but the text i have to change (and save-as-jpeg) over 300 times.
What my problem is:
I don't have the time to change all 300 names one by one and saving them one by one.
> Using Actions does not solve my problem ofcourse because it is different everytime
> Using Variables (set to the textlayer) and importing datasets COULD solve my problem but:
>> Sometimes one 'name' is longer than the previous one, so it does not fit inside the box:
http://fs1.directupload.net/images/141227/khv5ija4.jpg
What could solve my problem:
A way, which automates all the replacing of the textlayer with the names AND (probably more important) automatically changing the fontsize in case it is too big to fit within the textbox.
I hope there is a way to this. Waiting hopefully for answers thanks in advance!
You could take the longest name and set the the font size to fit within the space and use the data-set. _________________ Beekeeper
(www.beekeepersblog.com)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum