Gimp-Forum.net

Full Version: Change text size in several text layers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Bonjour à tous  Big Grin ,

J'ai un fichier qui contient des dizaines de calques "texte" et je voudrai modifier les tailles des fonts toutes en même temps sinon c'est un boulot de dingue mais je n'ai pas trouvé comment faire. Donc si quelqu'un à une solution SVP ?
Merci.
Antoche.

Hello everyone Big Grin, I have a file that contains dozens of "text" layers and I would like to modify the sizes of the fonts all at the same time otherwise it's a crazy job but I haven't found a way to do it. So if anyone has a solution please? Thanks.

This forum is in English, please post in English, you can use Google Translate as I did for your initial post.
Yes, it can be done with a little bit of script, is it a font scaling (new size= 1.5x current size for instance) or setting all layers to the new size?
(11-09-2022, 12:33 AM)Noix Wrote: [ -> ]Oui, cela peut être fait avec un peu de script, s'agit-il d'une mise à l'échelle de la police (nouvelle taille = 1,5x la taille actuelle par exemple) ou de définir tous les calques sur la nouvelle taille ?

Salut,
Merci pour cette réponse avec une lueur d'espoir  Smile . Il s'agit plutôt de définir un ensemble de calques avec une nouvelle taille, et un autre ensemble de calques avec une autre taille. Pour info je n'ai jamais fais de script Gimp, mais s'il faut je vais m'y mettre !  Big Grin
Antoche.
I'm finishing writing the adequate script... stay tuned.

PS/ Please translate your posts yourself...
(11-09-2022, 03:53 PM)Noix Wrote: [ -> ]Je finis d'écrire le script adéquat... restez à l'écoute.

PS/ Merci de traduire vous-même vos messages...

Hi,
Sorry I will do. I missed it.
Thank you and i'm waiting patiently  Big Grin
Hmmm... re-inventing the wheel - Saul Goode has a script-fu that might do the job sg-clone-text-attributes.scm

[attachment=8997]

a quick demo: https://i.imgur.com/Pdh9AwW.mp4

Attached, unzip, put in your user-profile scripts folder.
(11-09-2022, 04:07 PM)rich2005 Wrote: [ -> ]Hmmm... re-inventing the wheel - Saul Goode has a script-fu that might do the job sg-clone-text-attributes.scm



a quick demo: https://i.imgur.com/Pdh9AwW.mp4

Attached, unzip, put in your user-profile scripts folder.

Well, too late, see https://www.gimp-forum.net/Thread-ofn-replace-font Smile

Looking at SG's code, my script has the big advantage to be able to select layers on their current font or font size.
(11-09-2022, 09:56 PM)Ofnuts Wrote: [ -> ]Looking at SG's code, my script has the big advantage to be able to select layers on their current font or font size.

As usual that is an excellent plug-in.

Always good to have an alternative such as the Saul Goode script One disadvantage with the sg script is, being 2008 vintage, it does not work with layer groups. There are workarounds for that, but tedious.
@Ofnuts, nice work. Just what I need sometimes and less time consuming. Thanks.
(11-09-2022, 09:56 PM)Ofnuts Wrote: [ -> ]
(11-09-2022, 04:07 PM)rich2005 Wrote: [ -> ]Hmmm... re-inventing the wheel - Saul Goode has a script-fu that might do the job sg-clone-text-attributes.scm



a quick demo: https://i.imgur.com/Pdh9AwW.mp4

Attached, unzip, put in your user-profile scripts folder.

Well, too late, see https://www.gimp-forum.net/Thread-ofn-replace-font Smile

Looking at SG's code, my script has the big advantage to be able to select layers on their current font or font size.

Thanks guys for that material ! Big Grin
I'm going to try those scripts but ... questions (because I don't have any knowledge about the Gimp scripts) : 
I understand I have to place the classics scripts under "C:\Program Files\GIMP 2\share\gimp\2.0"
But, the python one too ?
Antoche.
Pages: 1 2